OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
6 #include <map> | 6 #include <map> |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/process.h" | 13 #include "base/process.h" |
14 #include "base/shared_memory.h" | 14 #include "base/shared_memory.h" |
15 #include "base/string16.h" | 15 #include "base/string16.h" |
16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "chrome/common/common_param_traits.h" | 19 #include "chrome/common/common_param_traits.h" |
20 #include "chrome/common/content_settings.h" | 20 #include "chrome/common/content_settings.h" |
21 #include "chrome/common/content_settings_pattern.h" | 21 #include "chrome/common/content_settings_pattern.h" |
22 #include "chrome/common/instant_types.h" | 22 #include "chrome/common/instant_types.h" |
23 #include "chrome/common/nacl_types.h" | 23 #include "chrome/common/nacl_types.h" |
24 #include "chrome/common/search_provider.h" | 24 #include "chrome/common/search_provider.h" |
25 #include "chrome/common/thumbnail_score.h" | 25 #include "chrome/common/thumbnail_score.h" |
26 #include "chrome/common/translate_errors.h" | 26 #include "chrome/common/translate_errors.h" |
27 #include "content/public/common/common_param_traits.h" | 27 #include "content/public/common/common_param_traits.h" |
28 #include "content/public/common/webkit_param_traits.h" | 28 #include "content/public/common/webkit_param_traits.h" |
| 29 #include "ipc/ipc_channel_handle.h" |
29 #include "ipc/ipc_message_macros.h" | 30 #include "ipc/ipc_message_macros.h" |
30 #include "ipc/ipc_platform_file.h" | 31 #include "ipc/ipc_platform_file.h" |
31 #include "third_party/skia/include/core/SkBitmap.h" | 32 #include "third_party/skia/include/core/SkBitmap.h" |
32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" | 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" |
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
34 #include "ui/gfx/rect.h" | 35 #include "ui/gfx/rect.h" |
35 | 36 |
36 // Singly-included section for enums and custom IPC traits. | 37 // Singly-included section for enums and custom IPC traits. |
37 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 38 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
38 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 39 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 SkBitmap /* bitmap */) | 479 SkBitmap /* bitmap */) |
479 | 480 |
480 // A message for an external host. | 481 // A message for an external host. |
481 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost, | 482 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost, |
482 std::string /* message */, | 483 std::string /* message */, |
483 std::string /* origin */, | 484 std::string /* origin */, |
484 std::string /* target */) | 485 std::string /* target */) |
485 | 486 |
486 // A renderer sends this to the browser process when it wants to start | 487 // A renderer sends this to the browser process when it wants to start |
487 // a new instance of the Native Client process. The browser will launch | 488 // a new instance of the Native Client process. The browser will launch |
488 // the process and return a handle to an IMC channel. | 489 // the process and return an IPC channel handle. This handle will only |
489 IPC_SYNC_MESSAGE_CONTROL2_1(ChromeViewHostMsg_LaunchNaCl, | 490 // be valid if the NaCl IPC proxy is enabled. |
| 491 IPC_SYNC_MESSAGE_CONTROL2_2(ChromeViewHostMsg_LaunchNaCl, |
490 GURL /* manifest_url */, | 492 GURL /* manifest_url */, |
491 int /* socket count */, | 493 int /* socket count */, |
492 std::vector<nacl::FileDescriptor> | 494 std::vector<nacl::FileDescriptor> |
493 /* imc channel handles */) | 495 /* imc channel handles */, |
| 496 IPC::ChannelHandle /* ipc_channel_handle */) |
494 | 497 |
495 // Notification that the page has an OpenSearch description document | 498 // Notification that the page has an OpenSearch description document |
496 // associated with it. | 499 // associated with it. |
497 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD, | 500 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD, |
498 int32 /* page_id */, | 501 int32 /* page_id */, |
499 GURL /* url of OS description document */, | 502 GURL /* url of OS description document */, |
500 search_provider::OSDDType) | 503 search_provider::OSDDType) |
501 | 504 |
502 // Find out if the given url's security origin is installed as a search | 505 // Find out if the given url's security origin is installed as a search |
503 // provider. | 506 // provider. |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 // previous SetCookie message to be processed. | 625 // previous SetCookie message to be processed. |
623 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, | 626 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
624 GURL /* url */, | 627 GURL /* url */, |
625 GURL /* first_party_for_cookies */, | 628 GURL /* first_party_for_cookies */, |
626 std::string /* cookies */) | 629 std::string /* cookies */) |
627 | 630 |
628 // Provide the browser process with current renderer framerate. | 631 // Provide the browser process with current renderer framerate. |
629 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, | 632 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
630 int /* routing id */, | 633 int /* routing id */, |
631 float /* frames per second */) | 634 float /* frames per second */) |
OLD | NEW |