Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(804)

Side by Side Diff: webkit/glue/resource_loader_bridge.h

Issue 1403001: Modifying the "dangerous download" algorithm. (Closed)
Patch Set: Removing unnecessary namespace qualifier Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 // Identifies what appcache host this request is associated with. 228 // Identifies what appcache host this request is associated with.
229 int appcache_host_id; 229 int appcache_host_id;
230 230
231 // Used to associated the bridge with a frame's network context. 231 // Used to associated the bridge with a frame's network context.
232 int routing_id; 232 int routing_id;
233 233
234 // If true, then the response body will be downloaded to a file and the 234 // If true, then the response body will be downloaded to a file and the
235 // path to that file will be provided in ResponseInfo::download_file_path. 235 // path to that file will be provided in ResponseInfo::download_file_path.
236 bool download_to_file; 236 bool download_to_file;
237
238 // True if the request was user initiated.
239 bool has_user_gesture;
237 }; 240 };
238 241
239 // See the SyncLoad method declared below. (The name of this struct is not 242 // See the SyncLoad method declared below. (The name of this struct is not
240 // suffixed with "Info" because it also contains the response data.) 243 // suffixed with "Info" because it also contains the response data.)
241 struct SyncLoadResponse : ResourceResponseInfo { 244 struct SyncLoadResponse : ResourceResponseInfo {
242 SyncLoadResponse(); 245 SyncLoadResponse();
243 ~SyncLoadResponse(); 246 ~SyncLoadResponse();
244 247
245 // The response status. 248 // The response status.
246 URLRequestStatus status; 249 URLRequestStatus status;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // construction must go through Create() 375 // construction must go through Create()
373 ResourceLoaderBridge(); 376 ResourceLoaderBridge();
374 377
375 private: 378 private:
376 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); 379 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge);
377 }; 380 };
378 381
379 } // namespace webkit_glue 382 } // namespace webkit_glue
380 383
381 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ 384 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698