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/install_state_traits.h" |
14 #include "chrome/common/instant_types.h" | 15 #include "chrome/common/instant_types.h" |
15 #include "chrome/common/ntp_logging_events.h" | 16 #include "chrome/common/ntp_logging_events.h" |
16 #include "chrome/common/search_provider.h" | 17 #include "chrome/common/search_provider.h" |
17 #include "chrome/common/web_application_info.h" | 18 #include "chrome/common/web_application_info.h" |
18 #include "components/content_settings/core/common/content_settings.h" | 19 #include "components/content_settings/core/common/content_settings.h" |
19 #include "components/content_settings/core/common/content_settings_pattern.h" | 20 #include "components/content_settings/core/common/content_settings_pattern.h" |
20 #include "components/omnibox/common/omnibox_focus_state.h" | 21 #include "components/omnibox/common/omnibox_focus_state.h" |
21 #include "content/public/common/top_controls_state.h" | 22 #include "content/public/common/top_controls_state.h" |
22 #include "content/public/common/webplugininfo.h" | 23 #include "content/public/common/webplugininfo.h" |
23 #include "ipc/ipc_channel_handle.h" | 24 #include "ipc/ipc_channel_handle.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 65 |
65 #define IPC_MESSAGE_START ChromeMsgStart | 66 #define IPC_MESSAGE_START ChromeMsgStart |
66 | 67 |
67 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status, | 68 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status, |
68 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized) | 69 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized) |
69 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason, | 70 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason, |
70 OMNIBOX_FOCUS_CHANGE_REASON_LAST) | 71 OMNIBOX_FOCUS_CHANGE_REASON_LAST) |
71 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState, OMNIBOX_FOCUS_STATE_LAST) | 72 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState, OMNIBOX_FOCUS_STATE_LAST) |
72 IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType, | 73 IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType, |
73 search_provider::OSDD_TYPE_LAST) | 74 search_provider::OSDD_TYPE_LAST) |
74 IPC_ENUM_TRAITS_MIN_MAX_VALUE(search_provider::InstallState, | |
75 search_provider::DENIED, | |
76 search_provider::INSTALLED_STATE_LAST) | |
77 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageAlignment, | 75 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageAlignment, |
78 THEME_BKGRND_IMAGE_ALIGN_LAST) | 76 THEME_BKGRND_IMAGE_ALIGN_LAST) |
79 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageTiling, THEME_BKGRND_IMAGE_LAST) | 77 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageTiling, THEME_BKGRND_IMAGE_LAST) |
80 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebConsoleMessage::Level, | 78 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebConsoleMessage::Level, |
81 blink::WebConsoleMessage::LevelLast) | 79 blink::WebConsoleMessage::LevelLast) |
82 IPC_ENUM_TRAITS_MAX_VALUE(content::TopControlsState, | 80 IPC_ENUM_TRAITS_MAX_VALUE(content::TopControlsState, |
83 content::TOP_CONTROLS_STATE_LAST) | 81 content::TOP_CONTROLS_STATE_LAST) |
84 | 82 |
85 // Output parameters for ChromeViewHostMsg_GetPluginInfo message. | 83 // Output parameters for ChromeViewHostMsg_GetPluginInfo message. |
86 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) | 84 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 // Tells the renderer that a banner has been dismissed. | 442 // Tells the renderer that a banner has been dismissed. |
445 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDismissed, | 443 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDismissed, |
446 int32_t /* request_id */) | 444 int32_t /* request_id */) |
447 | 445 |
448 // Notification that the page has an OpenSearch description document | 446 // Notification that the page has an OpenSearch description document |
449 // associated with it. | 447 // associated with it. |
450 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PageHasOSDD, | 448 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PageHasOSDD, |
451 GURL /* page_url */, | 449 GURL /* page_url */, |
452 GURL /* osdd_url */) | 450 GURL /* osdd_url */) |
453 | 451 |
454 // Find out if the given url's security origin is installed as a search | |
455 // provider. | |
456 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState, | |
457 GURL /* page url */, | |
458 GURL /* inquiry url */, | |
459 search_provider::InstallState /* install */) | |
460 | |
461 // Notifies when a plugin couldn't be loaded because it's outdated. | 452 // Notifies when a plugin couldn't be loaded because it's outdated. |
462 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, | 453 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, |
463 int /* placeholder ID */, | 454 int /* placeholder ID */, |
464 std::string /* plugin group identifier */) | 455 std::string /* plugin group identifier */) |
465 | 456 |
466 // Notifies when a plugin couldn't be loaded because it requires | 457 // Notifies when a plugin couldn't be loaded because it requires |
467 // user authorization. | 458 // user authorization. |
468 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin, | 459 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin, |
469 base::string16 /* name */, | 460 base::string16 /* name */, |
470 std::string /* plugin group identifier */) | 461 std::string /* plugin group identifier */) |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 | 558 |
568 // Record a sample string to a Rappor metric. | 559 // Record a sample string to a Rappor metric. |
569 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, | 560 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, |
570 std::string /* metric */, | 561 std::string /* metric */, |
571 std::string /* sample */) | 562 std::string /* sample */) |
572 | 563 |
573 // Record a domain and registry of a url to a Rappor metric. | 564 // Record a domain and registry of a url to a Rappor metric. |
574 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, | 565 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, |
575 std::string /* metric */, | 566 std::string /* metric */, |
576 GURL /* sample url */) | 567 GURL /* sample url */) |
OLD | NEW |