| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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, which also provides a factory method Create | 7 // implemented by the embedder, which also provides a factory method Create |
| 8 // to instantiate this object. | 8 // to instantiate this object. |
| 9 // | 9 // |
| 10 // One of these objects will be created by WebKit for each request. WebKit | 10 // One of these objects will be created by WebKit for each request. WebKit |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // Process id of the process making the request. | 72 // Process id of the process making the request. |
| 73 int requestor_pid; | 73 int requestor_pid; |
| 74 | 74 |
| 75 // Indicates if the current request is the main frame load, a sub-frame | 75 // Indicates if the current request is the main frame load, a sub-frame |
| 76 // load, or a sub objects load. | 76 // load, or a sub objects load. |
| 77 ResourceType::Type request_type; | 77 ResourceType::Type request_type; |
| 78 | 78 |
| 79 // Used for plugin to browser requests. | 79 // Used for plugin to browser requests. |
| 80 uint32 request_context; | 80 uint32 request_context; |
| 81 | 81 |
| 82 // Identifies that appcache host this request is associated with. | 82 // Identifies what appcache host this request is associated with. |
| 83 int appcache_host_id; | 83 int appcache_host_id; |
| 84 | 84 |
| 85 // Used to associated the bridge with a frame's network context. | 85 // Used to associated the bridge with a frame's network context. |
| 86 int routing_id; | 86 int routing_id; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 struct ResponseInfo { | 89 struct ResponseInfo { |
| 90 ResponseInfo(); | 90 ResponseInfo(); |
| 91 ~ResponseInfo(); | 91 ~ResponseInfo(); |
| 92 | 92 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 // construction must go through Create() | 267 // construction must go through Create() |
| 268 ResourceLoaderBridge(); | 268 ResourceLoaderBridge(); |
| 269 | 269 |
| 270 private: | 270 private: |
| 271 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); | 271 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); |
| 272 }; | 272 }; |
| 273 | 273 |
| 274 } // namespace webkit_glue | 274 } // namespace webkit_glue |
| 275 | 275 |
| 276 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ | 276 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ |
| OLD | NEW |