| 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" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 | 299 |
| 300 // JavaScript related messages ----------------------------------------------- | 300 // JavaScript related messages ----------------------------------------------- |
| 301 | 301 |
| 302 // Provides the renderer with the results of the browser's investigation into | 302 // Provides the renderer with the results of the browser's investigation into |
| 303 // why a recent main frame load failed (currently, just DNS probe result). | 303 // why a recent main frame load failed (currently, just DNS probe result). |
| 304 // NetErrorHelper will receive this mesage and replace or update the error | 304 // NetErrorHelper will receive this mesage and replace or update the error |
| 305 // page with more specific troubleshooting suggestions. | 305 // page with more specific troubleshooting suggestions. |
| 306 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo, | 306 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo, |
| 307 int /* DNS probe status */) | 307 int /* DNS probe status */) |
| 308 | 308 |
| 309 // Tells the renderer whether or not there is a local diagnostics service that | |
| 310 // can be run via ChromeViewHostMsg_RunNetworkDiagnostics messages. | |
| 311 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetCanShowNetworkDiagnosticsDialog, | |
| 312 bool /* can_show_network_diagnostics_dialog */) | |
| 313 | |
| 314 #if defined(OS_ANDROID) | 309 #if defined(OS_ANDROID) |
| 315 // Tells the renderer whether or not offline pages exist. This is used to | 310 // Tells the renderer whether or not offline pages exist. This is used to |
| 316 // decide if offline related button will be provided on certain error page. | 311 // decide if offline related button will be provided on certain error page. |
| 317 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetHasOfflinePages, | 312 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetHasOfflinePages, |
| 318 bool /* has_offline_pages */) | 313 bool /* has_offline_pages */) |
| 319 #endif // defined(OS_ANDROID) | 314 #endif // defined(OS_ANDROID) |
| 320 | 315 |
| 321 // Provides the information needed by the renderer process to contact a | 316 // Provides the information needed by the renderer process to contact a |
| 322 // navigation correction service. Handled by the NetErrorHelper. | 317 // navigation correction service. Handled by the NetErrorHelper. |
| 323 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo, | 318 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo, |
| 324 GURL /* Navigation correction service base URL */, | 319 GURL /* Navigation correction service base URL */, |
| 325 std::string /* language */, | 320 std::string /* language */, |
| 326 std::string /* origin_country */, | 321 std::string /* origin_country */, |
| 327 std::string /* API key to use */, | 322 std::string /* API key to use */, |
| 328 GURL /* Google Search URL to use */) | 323 GURL /* Google Search URL to use */) |
| 329 | 324 |
| 330 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RunNetworkDiagnostics, | |
| 331 GURL /* failed_url */) | |
| 332 | |
| 333 #if defined(OS_ANDROID) | 325 #if defined(OS_ANDROID) |
| 334 // Message sent from the renderer to the browser to show the UI for offline | 326 // Message sent from the renderer to the browser to show the UI for offline |
| 335 // pages. | 327 // pages. |
| 336 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_ShowOfflinePages) | 328 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_ShowOfflinePages) |
| 337 #endif // defined(OS_ANDROID) | 329 #endif // defined(OS_ANDROID) |
| 338 | 330 |
| 339 //----------------------------------------------------------------------------- | 331 //----------------------------------------------------------------------------- |
| 340 // Misc messages | 332 // Misc messages |
| 341 // These are messages sent from the renderer to the browser process. | 333 // These are messages sent from the renderer to the browser process. |
| 342 | 334 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 | 562 |
| 571 // Record a sample string to a Rappor metric. | 563 // Record a sample string to a Rappor metric. |
| 572 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, | 564 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, |
| 573 std::string /* metric */, | 565 std::string /* metric */, |
| 574 std::string /* sample */) | 566 std::string /* sample */) |
| 575 | 567 |
| 576 // Record a domain and registry of a url to a Rappor metric. | 568 // Record a domain and registry of a url to a Rappor metric. |
| 577 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, | 569 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, |
| 578 std::string /* metric */, | 570 std::string /* metric */, |
| 579 GURL /* sample url */) | 571 GURL /* sample url */) |
| OLD | NEW |