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

Side by Side Diff: chrome/common/render_messages_params.h

Issue 1403001: Modifying the "dangerous download" algorithm. (Closed)
Patch Set: Adding .sys and .drv as Dangerous extensions Created 10 years 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
« no previous file with comments | « chrome/common/navigation_gesture.h ('k') | chrome/common/render_messages_params.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 462
463 // Indicates which frame (or worker context) the request is being loaded into, 463 // Indicates which frame (or worker context) the request is being loaded into,
464 // or kNoHostId. 464 // or kNoHostId.
465 int appcache_host_id; 465 int appcache_host_id;
466 466
467 // Optional upload data (may be null). 467 // Optional upload data (may be null).
468 scoped_refptr<net::UploadData> upload_data; 468 scoped_refptr<net::UploadData> upload_data;
469 469
470 bool download_to_file; 470 bool download_to_file;
471 471
472 // True if the request was user initiated.
473 bool has_user_gesture;
474
472 // The following two members are specified if the request is initiated by 475 // The following two members are specified if the request is initiated by
473 // a plugin like Gears. 476 // a plugin like Gears.
474 477
475 // Contains the id of the host renderer. 478 // Contains the id of the host renderer.
476 int host_renderer_id; 479 int host_renderer_id;
477 480
478 // Contains the id of the host render view. 481 // Contains the id of the host render view.
479 int host_render_view_id; 482 int host_render_view_id;
480 }; 483 };
481 484
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { 1337 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> {
1335 typedef ViewHostMsg_AccessibilityNotification_Params param_type; 1338 typedef ViewHostMsg_AccessibilityNotification_Params param_type;
1336 static void Write(Message* m, const param_type& p); 1339 static void Write(Message* m, const param_type& p);
1337 static bool Read(const Message* m, void** iter, param_type* p); 1340 static bool Read(const Message* m, void** iter, param_type* p);
1338 static void Log(const param_type& p, std::string* l); 1341 static void Log(const param_type& p, std::string* l);
1339 }; 1342 };
1340 1343
1341 } // namespace IPC 1344 } // namespace IPC
1342 1345
1343 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 1346 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
OLDNEW
« no previous file with comments | « chrome/common/navigation_gesture.h ('k') | chrome/common/render_messages_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698