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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 // Identifies what appcache host this request is associated with. | 230 // Identifies what appcache host this request is associated with. |
231 int appcache_host_id; | 231 int appcache_host_id; |
232 | 232 |
233 // Used to associated the bridge with a frame's network context. | 233 // Used to associated the bridge with a frame's network context. |
234 int routing_id; | 234 int routing_id; |
235 | 235 |
236 // If true, then the response body will be downloaded to a file and the | 236 // If true, then the response body will be downloaded to a file and the |
237 // path to that file will be provided in ResponseInfo::download_file_path. | 237 // path to that file will be provided in ResponseInfo::download_file_path. |
238 bool download_to_file; | 238 bool download_to_file; |
| 239 |
| 240 // True if the request was user initiated. |
| 241 bool has_user_gesture; |
239 }; | 242 }; |
240 | 243 |
241 // See the SyncLoad method declared below. (The name of this struct is not | 244 // See the SyncLoad method declared below. (The name of this struct is not |
242 // suffixed with "Info" because it also contains the response data.) | 245 // suffixed with "Info" because it also contains the response data.) |
243 struct SyncLoadResponse : ResourceResponseInfo { | 246 struct SyncLoadResponse : ResourceResponseInfo { |
244 SyncLoadResponse(); | 247 SyncLoadResponse(); |
245 ~SyncLoadResponse(); | 248 ~SyncLoadResponse(); |
246 | 249 |
247 // The response status. | 250 // The response status. |
248 URLRequestStatus status; | 251 URLRequestStatus status; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 // construction must go through Create() | 377 // construction must go through Create() |
375 ResourceLoaderBridge(); | 378 ResourceLoaderBridge(); |
376 | 379 |
377 private: | 380 private: |
378 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); | 381 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); |
379 }; | 382 }; |
380 | 383 |
381 } // namespace webkit_glue | 384 } // namespace webkit_glue |
382 | 385 |
383 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ | 386 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ |
OLD | NEW |