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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 | 531 |
532 // Sent when the worker failed to load the worker script. | 532 // Sent when the worker failed to load the worker script. |
533 // In normal cases, this message is sent after ViewMsg_WorkerCreated is sent. | 533 // In normal cases, this message is sent after ViewMsg_WorkerCreated is sent. |
534 // But if the shared worker of the same URL already exists and it has failed | 534 // But if the shared worker of the same URL already exists and it has failed |
535 // to load the script, when the renderer send ViewHostMsg_CreateWorker before | 535 // to load the script, when the renderer send ViewHostMsg_CreateWorker before |
536 // the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent. | 536 // the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent. |
537 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed) | 537 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed) |
538 | 538 |
539 // Sent when the worker has connected. | 539 // Sent when the worker has connected. |
540 // This message is sent only if the worker successfully loaded the script. | 540 // This message is sent only if the worker successfully loaded the script. |
541 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected) | 541 // |use_counter| contains the values from the blink::UseCounter::Feature enum |
| 542 // that are counted on the worker global scope so far. |
| 543 IPC_MESSAGE_ROUTED1(ViewMsg_WorkerConnected, |
| 544 std::set<uint32_t> /* use_counter */) |
| 545 |
| 546 // Sent when the worker is destroyed. |
| 547 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerDestroyed) |
| 548 |
| 549 // Sent when the worker calls API that should be recored in UseCounter. |
| 550 // |use_counter_id| must be one of the values from blink::UseCounter::Feature |
| 551 // enum. |
| 552 IPC_MESSAGE_ROUTED1(ViewMsg_CountFeatureOnSharedWorker, |
| 553 uint32_t /* use_counter_id */) |
542 | 554 |
543 // Sent by the browser to synchronize with the next compositor frame. Used only | 555 // Sent by the browser to synchronize with the next compositor frame. Used only |
544 // for tests. | 556 // for tests. |
545 IPC_MESSAGE_ROUTED1(ViewMsg_WaitForNextFrameForTests, int /* routing_id */) | 557 IPC_MESSAGE_ROUTED1(ViewMsg_WaitForNextFrameForTests, int /* routing_id */) |
546 | 558 |
547 #if BUILDFLAG(ENABLE_PLUGINS) | 559 #if BUILDFLAG(ENABLE_PLUGINS) |
548 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 560 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
549 // Tells the renderer that the channel to the broker has been created. | 561 // Tells the renderer that the channel to the broker has been created. |
550 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, | 562 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, |
551 base::ProcessId /* broker_pid */, | 563 base::ProcessId /* broker_pid */, |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 int /* y */) | 894 int /* y */) |
883 | 895 |
884 #elif defined(OS_MACOSX) | 896 #elif defined(OS_MACOSX) |
885 // Receives content of a web page as plain text. | 897 // Receives content of a web page as plain text. |
886 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 898 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
887 #endif | 899 #endif |
888 | 900 |
889 // Adding a new message? Stick to the sort order above: first platform | 901 // Adding a new message? Stick to the sort order above: first platform |
890 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 902 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
891 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 903 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |