OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // 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/ref_counted.h" | 8 #include "base/ref_counted.h" |
9 #include "webkit/api/public/WebURLLoader.h" | 9 #include "third_party/WebKit/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 ~WebURLLoaderImpl(); | 16 ~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 private: | 30 private: |
31 class Context; | 31 class Context; |
32 scoped_refptr<Context> context_; | 32 scoped_refptr<Context> context_; |
33 }; | 33 }; |
34 | 34 |
35 } // namespace webkit_glue | 35 } // namespace webkit_glue |
36 | 36 |
37 #endif // WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ | 37 #endif // WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ |
OLD | NEW |