OLD | NEW |
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 Loading... |
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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { | 1334 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { |
1332 typedef ViewHostMsg_AccessibilityNotification_Params param_type; | 1335 typedef ViewHostMsg_AccessibilityNotification_Params param_type; |
1333 static void Write(Message* m, const param_type& p); | 1336 static void Write(Message* m, const param_type& p); |
1334 static bool Read(const Message* m, void** iter, param_type* p); | 1337 static bool Read(const Message* m, void** iter, param_type* p); |
1335 static void Log(const param_type& p, std::string* l); | 1338 static void Log(const param_type& p, std::string* l); |
1336 }; | 1339 }; |
1337 | 1340 |
1338 } // namespace IPC | 1341 } // namespace IPC |
1339 | 1342 |
1340 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 1343 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
OLD | NEW |