| 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 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 // Asks the renderer to send back Histograms. | 240 // Asks the renderer to send back Histograms. |
| 241 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms, | 241 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms, |
| 242 int /* sequence number of Renderer Histograms. */) | 242 int /* sequence number of Renderer Histograms. */) |
| 243 | 243 |
| 244 // Tells the renderer to create a FieldTrial, and by using a 100% probability | 244 // Tells the renderer to create a FieldTrial, and by using a 100% probability |
| 245 // for the FieldTrial, forces the FieldTrial to have assigned group name. | 245 // for the FieldTrial, forces the FieldTrial to have assigned group name. |
| 246 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup, | 246 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup, |
| 247 std::string /* field trial name */, | 247 std::string /* field trial name */, |
| 248 std::string /* group name that was assigned. */) | 248 std::string /* group name that was assigned. */) |
| 249 | 249 |
| 250 #if defined(USE_TCMALLOC) | |
| 251 // Asks the renderer to enable/disable Tcmalloc heap profiling. | |
| 252 // Note: filename_prefix arg is effectively ignored since the render process | |
| 253 // will be unable to write files to disk. Instead use WriteTcmallocHeapProfile | |
| 254 // to write a profile file. | |
| 255 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetTcmallocHeapProfiling, | |
| 256 bool /* enable profiling */, | |
| 257 std::string /* filename prefix for profiles */) | |
| 258 // Asks the renderer to write the Tcmalloc heap profile to a file. | |
| 259 IPC_MESSAGE_CONTROL1(ChromeViewMsg_WriteTcmallocHeapProfile, | |
| 260 FilePath::StringType /* filepath */) | |
| 261 #endif | |
| 262 | |
| 263 // Asks the renderer to send back V8 heap stats. | 250 // Asks the renderer to send back V8 heap stats. |
| 264 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats) | 251 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats) |
| 265 | 252 |
| 266 // Posts a message to the renderer. | 253 // Posts a message to the renderer. |
| 267 IPC_MESSAGE_ROUTED3(ChromeViewMsg_HandleMessageFromExternalHost, | 254 IPC_MESSAGE_ROUTED3(ChromeViewMsg_HandleMessageFromExternalHost, |
| 268 std::string /* The message */, | 255 std::string /* The message */, |
| 269 std::string /* The origin */, | 256 std::string /* The origin */, |
| 270 std::string /* The target*/) | 257 std::string /* The target*/) |
| 271 | 258 |
| 272 IPC_MESSAGE_ROUTED4(ChromeViewMsg_SearchBoxChange, | 259 IPC_MESSAGE_ROUTED4(ChromeViewMsg_SearchBoxChange, |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState, | 491 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState, |
| 505 GURL /* page url */, | 492 GURL /* page url */, |
| 506 GURL /* inquiry url */, | 493 GURL /* inquiry url */, |
| 507 search_provider::InstallState /* install */) | 494 search_provider::InstallState /* install */) |
| 508 | 495 |
| 509 // Send back histograms as vector of pickled-histogram strings. | 496 // Send back histograms as vector of pickled-histogram strings. |
| 510 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RendererHistograms, | 497 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RendererHistograms, |
| 511 int, /* sequence number of Renderer Histograms. */ | 498 int, /* sequence number of Renderer Histograms. */ |
| 512 std::vector<std::string>) | 499 std::vector<std::string>) |
| 513 | 500 |
| 514 #if defined USE_TCMALLOC | |
| 515 // Send back tcmalloc profile to write to a file. | |
| 516 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_WriteTcmallocHeapProfile_ACK, | |
| 517 FilePath::StringType /* filepath */, | |
| 518 std::string /* heap profile */) | |
| 519 #endif | |
| 520 | |
| 521 // Sends back stats about the V8 heap. | 501 // Sends back stats about the V8 heap. |
| 522 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats, | 502 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats, |
| 523 int /* size of heap (allocated from the OS) */, | 503 int /* size of heap (allocated from the OS) */, |
| 524 int /* bytes in use */) | 504 int /* bytes in use */) |
| 525 | 505 |
| 526 // Request for a DNS prefetch of the names in the array. | 506 // Request for a DNS prefetch of the names in the array. |
| 527 // NameList is typedef'ed std::vector<std::string> | 507 // NameList is typedef'ed std::vector<std::string> |
| 528 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch, | 508 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch, |
| 529 std::vector<std::string> /* hostnames */) | 509 std::vector<std::string> /* hostnames */) |
| 530 | 510 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 // previous SetCookie message to be processed. | 602 // previous SetCookie message to be processed. |
| 623 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, | 603 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
| 624 GURL /* url */, | 604 GURL /* url */, |
| 625 GURL /* first_party_for_cookies */, | 605 GURL /* first_party_for_cookies */, |
| 626 std::string /* cookies */) | 606 std::string /* cookies */) |
| 627 | 607 |
| 628 // Provide the browser process with current renderer framerate. | 608 // Provide the browser process with current renderer framerate. |
| 629 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, | 609 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
| 630 int /* routing id */, | 610 int /* routing id */, |
| 631 float /* frames per second */) | 611 float /* frames per second */) |
| OLD | NEW |