Chromium Code Reviews| 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/common_param_traits.h" | 14 #include "chrome/common/common_param_traits.h" |
| 15 #include "chrome/common/instant_types.h" | 15 #include "chrome/common/instant_types.h" |
| 16 #include "chrome/common/ntp_logging_events.h" | 16 #include "chrome/common/ntp_logging_events.h" |
| 17 #include "chrome/common/search_provider.h" | 17 #include "chrome/common/search_provider.h" |
| 18 #include "chrome/common/web_application_info.h" | 18 #include "chrome/common/web_application_info.h" |
| 19 #include "components/error_page/common/offline_page_types.h" | |
| 20 #include "components/omnibox/common/omnibox_focus_state.h" | 19 #include "components/omnibox/common/omnibox_focus_state.h" |
| 21 #include "content/public/common/common_param_traits.h" | 20 #include "content/public/common/common_param_traits.h" |
| 22 #include "content/public/common/top_controls_state.h" | 21 #include "content/public/common/top_controls_state.h" |
| 23 #include "ipc/ipc_channel_handle.h" | 22 #include "ipc/ipc_channel_handle.h" |
| 24 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
| 25 #include "ipc/ipc_platform_file.h" | 24 #include "ipc/ipc_platform_file.h" |
| 26 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm ptReply.h" | 25 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm ptReply.h" |
| 27 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 26 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
| 28 | 27 |
| 29 // Singly-included section for enums and custom IPC traits. | 28 // Singly-included section for enums and custom IPC traits. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 IPC_ENUM_TRAITS_MIN_MAX_VALUE(search_provider::InstallState, | 70 IPC_ENUM_TRAITS_MIN_MAX_VALUE(search_provider::InstallState, |
| 72 search_provider::DENIED, | 71 search_provider::DENIED, |
| 73 search_provider::INSTALLED_STATE_LAST) | 72 search_provider::INSTALLED_STATE_LAST) |
| 74 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageAlignment, | 73 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageAlignment, |
| 75 THEME_BKGRND_IMAGE_ALIGN_LAST) | 74 THEME_BKGRND_IMAGE_ALIGN_LAST) |
| 76 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageTiling, THEME_BKGRND_IMAGE_LAST) | 75 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageTiling, THEME_BKGRND_IMAGE_LAST) |
| 77 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebConsoleMessage::Level, | 76 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebConsoleMessage::Level, |
| 78 blink::WebConsoleMessage::LevelLast) | 77 blink::WebConsoleMessage::LevelLast) |
| 79 IPC_ENUM_TRAITS_MAX_VALUE(content::TopControlsState, | 78 IPC_ENUM_TRAITS_MAX_VALUE(content::TopControlsState, |
| 80 content::TOP_CONTROLS_STATE_LAST) | 79 content::TOP_CONTROLS_STATE_LAST) |
| 81 IPC_ENUM_TRAITS_MAX_VALUE( | |
| 82 error_page::OfflinePageStatus, | |
| 83 error_page::OfflinePageStatus::OFFLINE_PAGE_STATUS_LAST) | |
| 84 | 80 |
| 85 // Output parameters for ChromeViewHostMsg_GetPluginInfo message. | 81 // Output parameters for ChromeViewHostMsg_GetPluginInfo message. |
| 86 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) | 82 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) |
| 87 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status) | 83 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status) |
| 88 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin) | 84 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin) |
| 89 IPC_STRUCT_MEMBER(std::string, actual_mime_type) | 85 IPC_STRUCT_MEMBER(std::string, actual_mime_type) |
| 90 IPC_STRUCT_MEMBER(std::string, group_identifier) | 86 IPC_STRUCT_MEMBER(std::string, group_identifier) |
| 91 IPC_STRUCT_MEMBER(base::string16, group_name) | 87 IPC_STRUCT_MEMBER(base::string16, group_name) |
| 92 IPC_STRUCT_END() | 88 IPC_STRUCT_END() |
| 93 | 89 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 313 // page with more specific troubleshooting suggestions. | 309 // page with more specific troubleshooting suggestions. |
| 314 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo, | 310 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo, |
| 315 int /* DNS probe status */) | 311 int /* DNS probe status */) |
| 316 | 312 |
| 317 // Tells the renderer whether or not there is a local diagnostics service that | 313 // Tells the renderer whether or not there is a local diagnostics service that |
| 318 // can be run via ChromeViewHostMsg_RunNetworkDiagnostics messages. | 314 // can be run via ChromeViewHostMsg_RunNetworkDiagnostics messages. |
| 319 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetCanShowNetworkDiagnosticsDialog, | 315 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetCanShowNetworkDiagnosticsDialog, |
| 320 bool /* can_show_network_diagnostics_dialog */) | 316 bool /* can_show_network_diagnostics_dialog */) |
| 321 | 317 |
| 322 #if defined(OS_ANDROID) | 318 #if defined(OS_ANDROID) |
| 323 // Tells the renderer about the status of the offline pages. This is used to | 319 // Tells the renderer whether or not an offline page exists. This is used to |
| 324 // decide if offline related button will be provided on certain error page. | 320 // decide if offline related button will be provided on certain error page. |
|
nasko
2016/03/01 22:23:10
I thought this CL is aiming to remove the button.
jianli
2016/03/01 22:53:16
We're removing "Show saved copy" button, but not "
| |
| 325 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetOfflinePageInfo, | 321 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetHasOfflinePages, |
| 326 error_page::OfflinePageStatus /* offline_page_status */) | 322 bool /* has_offline_pages */) |
| 327 #endif // defined(OS_ANDROID) | 323 #endif // defined(OS_ANDROID) |
| 328 | 324 |
| 329 // Provides the information needed by the renderer process to contact a | 325 // Provides the information needed by the renderer process to contact a |
| 330 // navigation correction service. Handled by the NetErrorHelper. | 326 // navigation correction service. Handled by the NetErrorHelper. |
| 331 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo, | 327 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo, |
| 332 GURL /* Navigation correction service base URL */, | 328 GURL /* Navigation correction service base URL */, |
| 333 std::string /* language */, | 329 std::string /* language */, |
| 334 std::string /* origin_country */, | 330 std::string /* origin_country */, |
| 335 std::string /* API key to use */, | 331 std::string /* API key to use */, |
| 336 GURL /* Google Search URL to use */) | 332 GURL /* Google Search URL to use */) |
| 337 | 333 |
| 338 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RunNetworkDiagnostics, | 334 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RunNetworkDiagnostics, |
| 339 GURL /* failed_url */) | 335 GURL /* failed_url */) |
| 340 | 336 |
| 341 #if defined(OS_ANDROID) | 337 #if defined(OS_ANDROID) |
| 342 // Message sent from the renderer to the browser to show the UI for offline | 338 // Message sent from the renderer to the browser to show the UI for offline |
| 343 // pages. | 339 // pages. |
| 344 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_ShowOfflinePages) | 340 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_ShowOfflinePages) |
| 345 | |
| 346 // Message sent from the renderer to the browser to load the offline copy of | |
| 347 // the page that fails to load due to no network connectivity. | |
| 348 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_LoadOfflineCopy, GURL /* url */) | |
| 349 #endif // defined(OS_ANDROID) | 341 #endif // defined(OS_ANDROID) |
| 350 | 342 |
| 351 //----------------------------------------------------------------------------- | 343 //----------------------------------------------------------------------------- |
| 352 // Misc messages | 344 // Misc messages |
| 353 // These are messages sent from the renderer to the browser process. | 345 // These are messages sent from the renderer to the browser process. |
| 354 | 346 |
| 355 IPC_MESSAGE_CONTROL5(ChromeViewHostMsg_UpdatedCacheStats, | 347 IPC_MESSAGE_CONTROL5(ChromeViewHostMsg_UpdatedCacheStats, |
| 356 uint64_t /* min_dead_capacity */, | 348 uint64_t /* min_dead_capacity */, |
| 357 uint64_t /* max_dead_capacity */, | 349 uint64_t /* max_dead_capacity */, |
| 358 uint64_t /* capacity */, | 350 uint64_t /* capacity */, |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 579 | 571 |
| 580 // Record a sample string to a Rappor metric. | 572 // Record a sample string to a Rappor metric. |
| 581 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, | 573 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, |
| 582 std::string /* metric */, | 574 std::string /* metric */, |
| 583 std::string /* sample */) | 575 std::string /* sample */) |
| 584 | 576 |
| 585 // Record a domain and registry of a url to a Rappor metric. | 577 // Record a domain and registry of a url to a Rappor metric. |
| 586 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, | 578 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, |
| 587 std::string /* metric */, | 579 std::string /* metric */, |
| 588 GURL /* sample url */) | 580 GURL /* sample url */) |
| OLD | NEW |