| 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 | 10 |
| 11 namespace webkit_glue { | 11 namespace webkit_glue { |
| 12 | 12 |
| 13 class WebKitPlatformSupportImpl; |
| 14 |
| 13 class WebURLLoaderImpl : public WebKit::WebURLLoader { | 15 class WebURLLoaderImpl : public WebKit::WebURLLoader { |
| 14 public: | 16 public: |
| 15 WebURLLoaderImpl(); | 17 explicit WebURLLoaderImpl(WebKitPlatformSupportImpl* platform); |
| 16 virtual ~WebURLLoaderImpl(); | 18 virtual ~WebURLLoaderImpl(); |
| 17 | 19 |
| 18 // WebURLLoader methods: | 20 // WebURLLoader methods: |
| 19 virtual void loadSynchronously( | 21 virtual void loadSynchronously( |
| 20 const WebKit::WebURLRequest& request, | 22 const WebKit::WebURLRequest& request, |
| 21 WebKit::WebURLResponse& response, | 23 WebKit::WebURLResponse& response, |
| 22 WebKit::WebURLError& error, | 24 WebKit::WebURLError& error, |
| 23 WebKit::WebData& data); | 25 WebKit::WebData& data); |
| 24 virtual void loadAsynchronously( | 26 virtual void loadAsynchronously( |
| 25 const WebKit::WebURLRequest& request, | 27 const WebKit::WebURLRequest& request, |
| 26 WebKit::WebURLLoaderClient* client); | 28 WebKit::WebURLLoaderClient* client); |
| 27 virtual void cancel(); | 29 virtual void cancel(); |
| 28 virtual void setDefersLoading(bool value); | 30 virtual void setDefersLoading(bool value); |
| 29 | 31 |
| 30 void UpdateRoutingId(int new_routing_id); | 32 void UpdateRoutingId(int new_routing_id); |
| 31 | 33 |
| 32 private: | 34 private: |
| 33 class Context; | 35 class Context; |
| 34 scoped_refptr<Context> context_; | 36 scoped_refptr<Context> context_; |
| 37 WebKitPlatformSupportImpl* platform_; |
| 35 }; | 38 }; |
| 36 | 39 |
| 37 } // namespace webkit_glue | 40 } // namespace webkit_glue |
| 38 | 41 |
| 39 #endif // WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ | 42 #endif // WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ |
| OLD | NEW |