| 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/files/file_path.h" | 12 #include "base/files/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 "cc/input/top_controls_state.h" |
| 19 #include "chrome/common/common_param_traits.h" | 20 #include "chrome/common/common_param_traits.h" |
| 20 #include "chrome/common/content_settings.h" | 21 #include "chrome/common/content_settings.h" |
| 21 #include "chrome/common/content_settings_pattern.h" | 22 #include "chrome/common/content_settings_pattern.h" |
| 22 #include "chrome/common/instant_types.h" | 23 #include "chrome/common/instant_types.h" |
| 23 #include "chrome/common/nacl_types.h" | 24 #include "chrome/common/nacl_types.h" |
| 24 #include "chrome/common/omnibox_focus_state.h" | 25 #include "chrome/common/omnibox_focus_state.h" |
| 25 #include "chrome/common/search_provider.h" | 26 #include "chrome/common/search_provider.h" |
| 26 #include "chrome/common/search_types.h" | 27 #include "chrome/common/search_types.h" |
| 27 #include "chrome/common/translate_errors.h" | 28 #include "chrome/common/translate_errors.h" |
| 28 #include "content/public/common/common_param_traits.h" | 29 #include "content/public/common/common_param_traits.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 IPC_ENUM_TRAITS(InstantCompleteBehavior) | 120 IPC_ENUM_TRAITS(InstantCompleteBehavior) |
| 120 IPC_ENUM_TRAITS(InstantSizeUnits) | 121 IPC_ENUM_TRAITS(InstantSizeUnits) |
| 121 IPC_ENUM_TRAITS(InstantSuggestionType) | 122 IPC_ENUM_TRAITS(InstantSuggestionType) |
| 122 IPC_ENUM_TRAITS(OmniboxFocusState) | 123 IPC_ENUM_TRAITS(OmniboxFocusState) |
| 123 IPC_ENUM_TRAITS(search_provider::OSDDType) | 124 IPC_ENUM_TRAITS(search_provider::OSDDType) |
| 124 IPC_ENUM_TRAITS(search_provider::InstallState) | 125 IPC_ENUM_TRAITS(search_provider::InstallState) |
| 125 IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment) | 126 IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment) |
| 126 IPC_ENUM_TRAITS(ThemeBackgroundImageTiling) | 127 IPC_ENUM_TRAITS(ThemeBackgroundImageTiling) |
| 127 IPC_ENUM_TRAITS(TranslateErrors::Type) | 128 IPC_ENUM_TRAITS(TranslateErrors::Type) |
| 128 IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level) | 129 IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level) |
| 130 IPC_ENUM_TRAITS(cc::TopControlsState) |
| 129 | 131 |
| 130 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) | 132 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) |
| 131 IPC_STRUCT_TRAITS_MEMBER(value) | 133 IPC_STRUCT_TRAITS_MEMBER(value) |
| 132 IPC_STRUCT_TRAITS_END() | 134 IPC_STRUCT_TRAITS_END() |
| 133 | 135 |
| 134 // Output parameters for ChromeViewHostMsg_GetPluginInfo message. | 136 // Output parameters for ChromeViewHostMsg_GetPluginInfo message. |
| 135 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) | 137 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) |
| 136 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status) | 138 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status) |
| 137 IPC_STRUCT_MEMBER(webkit::WebPluginInfo, plugin) | 139 IPC_STRUCT_MEMBER(webkit::WebPluginInfo, plugin) |
| 138 IPC_STRUCT_MEMBER(std::string, actual_mime_type) | 140 IPC_STRUCT_MEMBER(std::string, actual_mime_type) |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 std::string /* host */) | 405 std::string /* host */) |
| 404 | 406 |
| 405 // Sent when the profile changes the kSafeBrowsingEnabled preference. | 407 // Sent when the profile changes the kSafeBrowsingEnabled preference. |
| 406 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection, | 408 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection, |
| 407 bool /* enable_phishing_detection */) | 409 bool /* enable_phishing_detection */) |
| 408 | 410 |
| 409 // This message asks frame sniffer start. | 411 // This message asks frame sniffer start. |
| 410 IPC_MESSAGE_ROUTED1(ChromeViewMsg_StartFrameSniffer, | 412 IPC_MESSAGE_ROUTED1(ChromeViewMsg_StartFrameSniffer, |
| 411 string16 /* frame-name */) | 413 string16 /* frame-name */) |
| 412 | 414 |
| 415 // Notifies the renderer whether hiding/showing the top controls is enabled, |
| 416 // what the current state should be, and whether or not to animate to the |
| 417 // proper state. |
| 418 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState, |
| 419 cc::TopControlsState /* constraints */, |
| 420 cc::TopControlsState /* current */, |
| 421 bool /* animate */) |
| 422 |
| 413 // JavaScript related messages ----------------------------------------------- | 423 // JavaScript related messages ----------------------------------------------- |
| 414 | 424 |
| 415 // Notify the JavaScript engine in the render to change its parameters | 425 // Notify the JavaScript engine in the render to change its parameters |
| 416 // while performing stress testing. | 426 // while performing stress testing. |
| 417 IPC_MESSAGE_ROUTED2(ChromeViewMsg_JavaScriptStressTestControl, | 427 IPC_MESSAGE_ROUTED2(ChromeViewMsg_JavaScriptStressTestControl, |
| 418 int /* cmd */, | 428 int /* cmd */, |
| 419 int /* param */) | 429 int /* param */) |
| 420 | 430 |
| 421 // Asks the renderer to send back FPS. | 431 // Asks the renderer to send back FPS. |
| 422 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS) | 432 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS) |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 // previous SetCookie message to be processed. | 749 // previous SetCookie message to be processed. |
| 740 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, | 750 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
| 741 GURL /* url */, | 751 GURL /* url */, |
| 742 GURL /* first_party_for_cookies */, | 752 GURL /* first_party_for_cookies */, |
| 743 std::string /* cookies */) | 753 std::string /* cookies */) |
| 744 | 754 |
| 745 // Provide the browser process with current renderer framerate. | 755 // Provide the browser process with current renderer framerate. |
| 746 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, | 756 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
| 747 int /* routing id */, | 757 int /* routing id */, |
| 748 float /* frames per second */) | 758 float /* frames per second */) |
| OLD | NEW |