OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ |
6 #define WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoader.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoader.h" |
| 10 #include "webkit/glue/webkit_glue_export.h" |
10 | 11 |
11 namespace webkit_glue { | 12 namespace webkit_glue { |
12 | 13 |
13 class WebKitPlatformSupportImpl; | 14 class WebKitPlatformSupportImpl; |
14 | 15 |
15 class WebURLLoaderImpl : public WebKit::WebURLLoader { | 16 class WebURLLoaderImpl : public WebKit::WebURLLoader { |
16 public: | 17 public: |
17 explicit WebURLLoaderImpl(WebKitPlatformSupportImpl* platform); | 18 explicit WebURLLoaderImpl(WebKitPlatformSupportImpl* platform); |
18 virtual ~WebURLLoaderImpl(); | 19 virtual ~WebURLLoaderImpl(); |
19 | 20 |
20 // WebURLLoader methods: | 21 // WebURLLoader methods: |
21 virtual void loadSynchronously( | 22 virtual void loadSynchronously( |
22 const WebKit::WebURLRequest& request, | 23 const WebKit::WebURLRequest& request, |
23 WebKit::WebURLResponse& response, | 24 WebKit::WebURLResponse& response, |
24 WebKit::WebURLError& error, | 25 WebKit::WebURLError& error, |
25 WebKit::WebData& data); | 26 WebKit::WebData& data); |
26 virtual void loadAsynchronously( | 27 virtual void loadAsynchronously( |
27 const WebKit::WebURLRequest& request, | 28 const WebKit::WebURLRequest& request, |
28 WebKit::WebURLLoaderClient* client); | 29 WebKit::WebURLLoaderClient* client); |
29 virtual void cancel(); | 30 virtual void cancel(); |
30 virtual void setDefersLoading(bool value); | 31 virtual void setDefersLoading(bool value); |
31 | 32 |
32 void UpdateRoutingId(int new_routing_id); | 33 WEBKIT_GLUE_EXPORT void UpdateRoutingId(int new_routing_id); |
33 | 34 |
34 private: | 35 private: |
35 class Context; | 36 class Context; |
36 scoped_refptr<Context> context_; | 37 scoped_refptr<Context> context_; |
37 WebKitPlatformSupportImpl* platform_; | 38 WebKitPlatformSupportImpl* platform_; |
38 }; | 39 }; |
39 | 40 |
40 } // namespace webkit_glue | 41 } // namespace webkit_glue |
41 | 42 |
42 #endif // WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ | 43 #endif // WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ |
OLD | NEW |