| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ | |
| 6 #define WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ | |
| 7 | |
| 8 #include "base/memory/ref_counted.h" | |
| 9 #include "third_party/WebKit/public/platform/WebURLLoader.h" | |
| 10 #include "webkit/glue/webkit_glue_export.h" | |
| 11 | |
| 12 namespace webkit_glue { | |
| 13 | |
| 14 class WebKitPlatformSupportImpl; | |
| 15 | |
| 16 class WebURLLoaderImpl : public WebKit::WebURLLoader { | |
| 17 public: | |
| 18 explicit WebURLLoaderImpl(WebKitPlatformSupportImpl* platform); | |
| 19 virtual ~WebURLLoaderImpl(); | |
| 20 | |
| 21 static WebKit::WebURLError CreateError(const WebKit::WebURL& unreachable_url, | |
| 22 int reason); | |
| 23 | |
| 24 // WebURLLoader methods: | |
| 25 virtual void loadSynchronously( | |
| 26 const WebKit::WebURLRequest& request, | |
| 27 WebKit::WebURLResponse& response, | |
| 28 WebKit::WebURLError& error, | |
| 29 WebKit::WebData& data); | |
| 30 virtual void loadAsynchronously( | |
| 31 const WebKit::WebURLRequest& request, | |
| 32 WebKit::WebURLLoaderClient* client); | |
| 33 virtual void cancel(); | |
| 34 virtual void setDefersLoading(bool value); | |
| 35 virtual void didChangePriority(WebKit::WebURLRequest::Priority new_priority); | |
| 36 | |
| 37 private: | |
| 38 class Context; | |
| 39 scoped_refptr<Context> context_; | |
| 40 WebKitPlatformSupportImpl* platform_; | |
| 41 }; | |
| 42 | |
| 43 } // namespace webkit_glue | |
| 44 | |
| 45 #endif // WEBKIT_GLUE_WEBURLLOADER_IMPL_H_ | |
| OLD | NEW |