| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 // The intent of this file is to provide a type-neutral abstraction between | 5 // The intent of this file is to provide a type-neutral abstraction between |
| 6 // Chrome and WebKit for resource loading. This pure-virtual interface is | 6 // Chrome and WebKit for resource loading. This pure-virtual interface is |
| 7 // implemented by the embedder. | 7 // implemented by the embedder. |
| 8 // | 8 // |
| 9 // One of these objects will be created by WebKit for each request. WebKit | 9 // One of these objects will be created by WebKit for each request. WebKit |
| 10 // will own the pointer to the bridge, and will delete it when the request is | 10 // will own the pointer to the bridge, and will delete it when the request is |
| 11 // no longer needed. | 11 // no longer needed. |
| 12 // | 12 // |
| 13 // In turn, the bridge's owner on the WebKit end will implement the Peer | 13 // In turn, the bridge's owner on the WebKit end will implement the Peer |
| 14 // interface, which we will use to communicate notifications back. | 14 // interface, which we will use to communicate notifications back. |
| 15 | 15 |
| 16 #ifndef WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ | 16 #ifndef WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ |
| 17 #define WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ | 17 #define WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ |
| 18 | 18 |
| 19 #include <utility> | 19 #include <utility> |
| 20 | 20 |
| 21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 22 #if defined(OS_POSIX) | 22 #if defined(OS_POSIX) |
| 23 #include "base/file_descriptor_posix.h" | 23 #include "base/file_descriptor_posix.h" |
| 24 #endif | 24 #endif |
| 25 #include "base/memory/ref_counted.h" | 25 #include "base/memory/ref_counted.h" |
| 26 #include "base/platform_file.h" | 26 #include "base/platform_file.h" |
| 27 #include "base/values.h" | 27 #include "base/values.h" |
| 28 #include "googleurl/src/gurl.h" | |
| 29 #include "net/base/request_priority.h" | 28 #include "net/base/request_priority.h" |
| 30 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 29 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
| 31 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 30 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 31 #include "url/gurl.h" |
| 32 #include "webkit/common/resource_response_info.h" | 32 #include "webkit/common/resource_response_info.h" |
| 33 #include "webkit/glue/resource_type.h" | 33 #include "webkit/glue/resource_type.h" |
| 34 #include "webkit/glue/webkit_glue_export.h" | 34 #include "webkit/glue/webkit_glue_export.h" |
| 35 | 35 |
| 36 namespace webkit_glue { | 36 namespace webkit_glue { |
| 37 class ResourceRequestBody; | 37 class ResourceRequestBody; |
| 38 | 38 |
| 39 class ResourceLoaderBridge { | 39 class ResourceLoaderBridge { |
| 40 public: | 40 public: |
| 41 // Structure used when calling | 41 // Structure used when calling |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 // methods may be called to construct the body of the request. | 223 // methods may be called to construct the body of the request. |
| 224 WEBKIT_GLUE_EXPORT ResourceLoaderBridge(); | 224 WEBKIT_GLUE_EXPORT ResourceLoaderBridge(); |
| 225 | 225 |
| 226 private: | 226 private: |
| 227 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); | 227 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); |
| 228 }; | 228 }; |
| 229 | 229 |
| 230 } // namespace webkit_glue | 230 } // namespace webkit_glue |
| 231 | 231 |
| 232 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ | 232 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ |
| OLD | NEW |