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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 | 456 |
457 // Indicates which frame (or worker context) the request is being loaded into, | 457 // Indicates which frame (or worker context) the request is being loaded into, |
458 // or kNoHostId. | 458 // or kNoHostId. |
459 int appcache_host_id; | 459 int appcache_host_id; |
460 | 460 |
461 // Optional upload data (may be null). | 461 // Optional upload data (may be null). |
462 scoped_refptr<net::UploadData> upload_data; | 462 scoped_refptr<net::UploadData> upload_data; |
463 | 463 |
464 bool download_to_file; | 464 bool download_to_file; |
465 | 465 |
| 466 // True if the request was user initiated. |
| 467 bool has_user_gesture; |
| 468 |
466 // The following two members are specified if the request is initiated by | 469 // The following two members are specified if the request is initiated by |
467 // a plugin like Gears. | 470 // a plugin like Gears. |
468 | 471 |
469 // Contains the id of the host renderer. | 472 // Contains the id of the host renderer. |
470 int host_renderer_id; | 473 int host_renderer_id; |
471 | 474 |
472 // Contains the id of the host render view. | 475 // Contains the id of the host render view. |
473 int host_render_view_id; | 476 int host_render_view_id; |
474 }; | 477 }; |
475 | 478 |
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { | 1325 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { |
1323 typedef ViewHostMsg_AccessibilityNotification_Params param_type; | 1326 typedef ViewHostMsg_AccessibilityNotification_Params param_type; |
1324 static void Write(Message* m, const param_type& p); | 1327 static void Write(Message* m, const param_type& p); |
1325 static bool Read(const Message* m, void** iter, param_type* p); | 1328 static bool Read(const Message* m, void** iter, param_type* p); |
1326 static void Log(const param_type& p, std::string* l); | 1329 static void Log(const param_type& p, std::string* l); |
1327 }; | 1330 }; |
1328 | 1331 |
1329 } // namespace IPC | 1332 } // namespace IPC |
1330 | 1333 |
1331 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 1334 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
OLD | NEW |