| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // 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 WebURLLoaderImpl : public WebKit::WebURLLoader { | 13 class WebURLLoaderImpl : public WebKit::WebURLLoader { |
| 14 public: | 14 public: |
| 15 WebURLLoaderImpl(); | 15 WebURLLoaderImpl(); |
| 16 virtual ~WebURLLoaderImpl(); | 16 virtual ~WebURLLoaderImpl(); |
| 17 | 17 |
| 18 // WebURLLoader methods: | 18 // WebURLLoader methods: |
| 19 virtual void loadSynchronously( | 19 virtual void loadSynchronously( |
| 20 const WebKit::WebURLRequest& request, | 20 const WebKit::WebURLRequest& request, |
| 21 WebKit::WebURLResponse& response, | 21 WebKit::WebURLResponse& response, |
| 22 WebKit::WebURLError& error, | 22 WebKit::WebURLError& error, |
| 23 WebKit::WebData& data); | 23 WebKit::WebData& data); |
| 24 virtual void loadAsynchronously( | 24 virtual void loadAsynchronously( |
| 25 const WebKit::WebURLRequest& request, | 25 const WebKit::WebURLRequest& request, |
| 26 WebKit::WebURLLoaderClient* client); | 26 WebKit::WebURLLoaderClient* client); |
| 27 virtual void cancel(); | 27 virtual void cancel(); |
| 28 virtual void setDefersLoading(bool value); | 28 virtual void setDefersLoading(bool value); |
| 29 | 29 |
| 30 void UpdateRoutingId(int new_routing_id); |
| 31 |
| 30 private: | 32 private: |
| 31 class Context; | 33 class Context; |
| 32 scoped_refptr<Context> context_; | 34 scoped_refptr<Context> context_; |
| 33 }; | 35 }; |
| 34 | 36 |
| 35 } // namespace webkit_glue | 37 } // namespace webkit_glue |
| 36 | 38 |
| 37 #endif // WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ | 39 #endif // WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ |
| OLD | NEW |