| 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 <stdint.h> | 6 #include <stdint.h> |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "chrome/common/features.h" | 14 #include "chrome/common/features.h" |
| 15 #include "chrome/common/search/instant_types.h" | 15 #include "chrome/common/search/instant_types.h" |
| 16 #include "chrome/common/search/ntp_logging_events.h" | 16 #include "chrome/common/search/ntp_logging_events.h" |
| 17 #include "chrome/common/web_application_info.h" | 17 #include "chrome/common/web_application_info.h" |
| 18 #include "components/content_settings/core/common/content_settings.h" | 18 #include "components/content_settings/core/common/content_settings.h" |
| 19 #include "components/content_settings/core/common/content_settings_pattern.h" | 19 #include "components/content_settings/core/common/content_settings_pattern.h" |
| 20 #include "components/content_settings/core/common/content_settings_types.h" | 20 #include "components/content_settings/core/common/content_settings_types.h" |
| 21 #include "components/omnibox/common/omnibox_focus_state.h" | 21 #include "components/omnibox/common/omnibox_focus_state.h" |
| 22 #include "content/public/common/top_controls_state.h" | 22 #include "content/public/common/browser_controls_state.h" |
| 23 #include "content/public/common/webplugininfo.h" | 23 #include "content/public/common/webplugininfo.h" |
| 24 #include "ipc/ipc_channel_handle.h" | 24 #include "ipc/ipc_channel_handle.h" |
| 25 #include "ipc/ipc_message_macros.h" | 25 #include "ipc/ipc_message_macros.h" |
| 26 #include "ipc/ipc_platform_file.h" | 26 #include "ipc/ipc_platform_file.h" |
| 27 #include "ppapi/features/features.h" | 27 #include "ppapi/features/features.h" |
| 28 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptReply.h" | 28 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptReply.h" |
| 29 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 29 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
| 30 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 30 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
| 31 #include "ui/base/window_open_disposition.h" | 31 #include "ui/base/window_open_disposition.h" |
| 32 #include "url/gurl.h" | 32 #include "url/gurl.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status, | 75 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status, |
| 76 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized) | 76 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized) |
| 77 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason, | 77 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason, |
| 78 OMNIBOX_FOCUS_CHANGE_REASON_LAST) | 78 OMNIBOX_FOCUS_CHANGE_REASON_LAST) |
| 79 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState, OMNIBOX_FOCUS_STATE_LAST) | 79 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState, OMNIBOX_FOCUS_STATE_LAST) |
| 80 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageAlignment, | 80 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageAlignment, |
| 81 THEME_BKGRND_IMAGE_ALIGN_LAST) | 81 THEME_BKGRND_IMAGE_ALIGN_LAST) |
| 82 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageTiling, THEME_BKGRND_IMAGE_LAST) | 82 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageTiling, THEME_BKGRND_IMAGE_LAST) |
| 83 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebConsoleMessage::Level, | 83 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebConsoleMessage::Level, |
| 84 blink::WebConsoleMessage::LevelLast) | 84 blink::WebConsoleMessage::LevelLast) |
| 85 IPC_ENUM_TRAITS_MAX_VALUE(content::TopControlsState, | 85 IPC_ENUM_TRAITS_MAX_VALUE(content::BrowserControlsState, |
| 86 content::TOP_CONTROLS_STATE_LAST) | 86 content::BROWSER_CONTROLS_STATE_LAST) |
| 87 | 87 |
| 88 // Output parameters for ChromeViewHostMsg_GetPluginInfo message. | 88 // Output parameters for ChromeViewHostMsg_GetPluginInfo message. |
| 89 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) | 89 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) |
| 90 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status) | 90 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status) |
| 91 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin) | 91 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin) |
| 92 IPC_STRUCT_MEMBER(std::string, actual_mime_type) | 92 IPC_STRUCT_MEMBER(std::string, actual_mime_type) |
| 93 IPC_STRUCT_MEMBER(std::string, group_identifier) | 93 IPC_STRUCT_MEMBER(std::string, group_identifier) |
| 94 IPC_STRUCT_MEMBER(base::string16, group_name) | 94 IPC_STRUCT_MEMBER(base::string16, group_name) |
| 95 IPC_STRUCT_END() | 95 IPC_STRUCT_END() |
| 96 | 96 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message. | 281 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message. |
| 282 IPC_MESSAGE_ROUTED3(ChromeViewMsg_RequestThumbnailForContextNode, | 282 IPC_MESSAGE_ROUTED3(ChromeViewMsg_RequestThumbnailForContextNode, |
| 283 int /* thumbnail_min_area_pixels */, | 283 int /* thumbnail_min_area_pixels */, |
| 284 gfx::Size /* thumbnail_max_size_pixels */, | 284 gfx::Size /* thumbnail_max_size_pixels */, |
| 285 int /* ID of the callback */) | 285 int /* ID of the callback */) |
| 286 | 286 |
| 287 // Notifies the renderer whether hiding/showing the top controls is enabled, | 287 // Notifies the renderer whether hiding/showing the top controls is enabled, |
| 288 // what the current state should be, and whether or not to animate to the | 288 // what the current state should be, and whether or not to animate to the |
| 289 // proper state. | 289 // proper state. |
| 290 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState, | 290 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState, |
| 291 content::TopControlsState /* constraints */, | 291 content::BrowserControlsState /* constraints */, |
| 292 content::TopControlsState /* current */, | 292 content::BrowserControlsState /* current */, |
| 293 bool /* animate */) | 293 bool /* animate */) |
| 294 | 294 |
| 295 | 295 |
| 296 // Updates the window features of the render view. | 296 // Updates the window features of the render view. |
| 297 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures, | 297 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures, |
| 298 blink::WebWindowFeatures /* window_features */) | 298 blink::WebWindowFeatures /* window_features */) |
| 299 | 299 |
| 300 // Responds to the request for a thumbnail. | 300 // Responds to the request for a thumbnail. |
| 301 // Thumbnail data will be empty is a thumbnail could not be produced. | 301 // Thumbnail data will be empty is a thumbnail could not be produced. |
| 302 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK, | 302 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK, |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 blink::WebAppBannerPromptReply /* reply */, | 632 blink::WebAppBannerPromptReply /* reply */, |
| 633 std::string /* referrer */) | 633 std::string /* referrer */) |
| 634 | 634 |
| 635 // Tells the browser to restart the app banner display pipeline. | 635 // Tells the browser to restart the app banner display pipeline. |
| 636 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RequestShowAppBanner, | 636 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RequestShowAppBanner, |
| 637 int32_t /* request_id */) | 637 int32_t /* request_id */) |
| 638 | 638 |
| 639 // Sent by the renderer to indicate that a fields trial has been activated. | 639 // Sent by the renderer to indicate that a fields trial has been activated. |
| 640 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated, | 640 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated, |
| 641 std::string /* name */) | 641 std::string /* name */) |
| OLD | NEW |