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 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms, | 240 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms, |
241 int /* sequence number of Renderer Histograms. */) | 241 int /* sequence number of Renderer Histograms. */) |
242 | 242 |
243 // Tells the renderer to create a FieldTrial, and by using a 100% probability | 243 // Tells the renderer to create a FieldTrial, and by using a 100% probability |
244 // for the FieldTrial, forces the FieldTrial to have assigned group name. | 244 // for the FieldTrial, forces the FieldTrial to have assigned group name. |
245 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup, | 245 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup, |
246 std::string /* field trial name */, | 246 std::string /* field trial name */, |
247 std::string /* group name that was assigned. */) | 247 std::string /* group name that was assigned. */) |
248 | 248 |
249 #if defined(USE_TCMALLOC) | 249 #if defined(USE_TCMALLOC) |
250 // Asks the renderer to send back tcmalloc stats. | |
251 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetRendererTcmalloc) | |
252 // Asks the renderer to enable/disable Tcmalloc heap profiling. | 250 // Asks the renderer to enable/disable Tcmalloc heap profiling. |
253 // Note: filename_prefix arg is effectively ignored since the render process | 251 // Note: filename_prefix arg is effectively ignored since the render process |
254 // will be unable to write files to disk. Instead use WriteTcmallocHeapProfile | 252 // will be unable to write files to disk. Instead use WriteTcmallocHeapProfile |
255 // to write a profile file. | 253 // to write a profile file. |
256 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetTcmallocHeapProfiling, | 254 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetTcmallocHeapProfiling, |
257 bool /* enable profiling */, | 255 bool /* enable profiling */, |
258 std::string /* filename prefix for profiles */) | 256 std::string /* filename prefix for profiles */) |
259 // Asks the renderer to write the Tcmalloc heap profile to a file. | 257 // Asks the renderer to write the Tcmalloc heap profile to a file. |
260 IPC_MESSAGE_CONTROL1(ChromeViewMsg_WriteTcmallocHeapProfile, | 258 IPC_MESSAGE_CONTROL1(ChromeViewMsg_WriteTcmallocHeapProfile, |
261 FilePath::StringType /* filepath */) | 259 FilePath::StringType /* filepath */) |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 GURL /* page url */, | 502 GURL /* page url */, |
505 GURL /* inquiry url */, | 503 GURL /* inquiry url */, |
506 search_provider::InstallState /* install */) | 504 search_provider::InstallState /* install */) |
507 | 505 |
508 // Send back histograms as vector of pickled-histogram strings. | 506 // Send back histograms as vector of pickled-histogram strings. |
509 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RendererHistograms, | 507 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RendererHistograms, |
510 int, /* sequence number of Renderer Histograms. */ | 508 int, /* sequence number of Renderer Histograms. */ |
511 std::vector<std::string>) | 509 std::vector<std::string>) |
512 | 510 |
513 #if defined USE_TCMALLOC | 511 #if defined USE_TCMALLOC |
514 // Send back tcmalloc stats output. | |
515 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_RendererTcmalloc, | |
516 std::string /* tcmalloc debug output */) | |
517 // Send back tcmalloc profile to write to a file. | 512 // Send back tcmalloc profile to write to a file. |
518 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_WriteTcmallocHeapProfile_ACK, | 513 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_WriteTcmallocHeapProfile_ACK, |
519 FilePath::StringType /* filepath */, | 514 FilePath::StringType /* filepath */, |
520 std::string /* heap profile */) | 515 std::string /* heap profile */) |
521 #endif | 516 #endif |
522 | 517 |
523 // Sends back stats about the V8 heap. | 518 // Sends back stats about the V8 heap. |
524 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats, | 519 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats, |
525 int /* size of heap (allocated from the OS) */, | 520 int /* size of heap (allocated from the OS) */, |
526 int /* bytes in use */) | 521 int /* bytes in use */) |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 // previous SetCookie message to be processed. | 618 // previous SetCookie message to be processed. |
624 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, | 619 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
625 GURL /* url */, | 620 GURL /* url */, |
626 GURL /* first_party_for_cookies */, | 621 GURL /* first_party_for_cookies */, |
627 std::string /* cookies */) | 622 std::string /* cookies */) |
628 | 623 |
629 // Provide the browser process with current renderer framerate. | 624 // Provide the browser process with current renderer framerate. |
630 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, | 625 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
631 int /* routing id */, | 626 int /* routing id */, |
632 float /* frames per second */) | 627 float /* frames per second */) |
OLD | NEW |