Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / webkit / glue / weburlloader_impl.h
blobf32cc296f99f594ec7f090ceb5c9592cd921f3db
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WEBKIT_GLUE_WEBURLLOADER_IMPL_H_
6 #define WEBKIT_GLUE_WEBURLLOADER_IMPL_H_
8 #include "base/memory/ref_counted.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLLoader.h"
10 #include "webkit/glue/webkit_glue_export.h"
12 namespace webkit_glue {
14 class WebKitPlatformSupportImpl;
16 class WebURLLoaderImpl : public WebKit::WebURLLoader {
17 public:
18 explicit WebURLLoaderImpl(WebKitPlatformSupportImpl* platform);
19 virtual ~WebURLLoaderImpl();
21 // WebURLLoader methods:
22 virtual void loadSynchronously(
23 const WebKit::WebURLRequest& request,
24 WebKit::WebURLResponse& response,
25 WebKit::WebURLError& error,
26 WebKit::WebData& data);
27 virtual void loadAsynchronously(
28 const WebKit::WebURLRequest& request,
29 WebKit::WebURLLoaderClient* client);
30 virtual void cancel();
31 virtual void setDefersLoading(bool value);
32 virtual void didChangePriority(WebKit::WebURLRequest::Priority new_priority);
34 private:
35 class Context;
36 scoped_refptr<Context> context_;
37 WebKitPlatformSupportImpl* platform_;
40 } // namespace webkit_glue
42 #endif // WEBKIT_GLUE_WEBURLLOADER_IMPL_H_