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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
532 | 532 |
533 // Sent when the worker failed to load the worker script. | 533 // Sent when the worker failed to load the worker script. |
534 // In normal cases, this message is sent after ViewMsg_WorkerCreated is sent. | 534 // In normal cases, this message is sent after ViewMsg_WorkerCreated is sent. |
535 // But if the shared worker of the same URL already exists and it has failed | 535 // But if the shared worker of the same URL already exists and it has failed |
536 // to load the script, when the renderer send ViewHostMsg_CreateWorker before | 536 // to load the script, when the renderer send ViewHostMsg_CreateWorker before |
537 // the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent. | 537 // the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent. |
538 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed) | 538 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed) |
539 | 539 |
540 // Sent when the worker has connected. | 540 // Sent when the worker has connected. |
541 // This message is sent only if the worker successfully loaded the script. | 541 // This message is sent only if the worker successfully loaded the script. |
542 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected) | 542 IPC_MESSAGE_ROUTED1(ViewMsg_WorkerConnected, |
horo
2017/01/25 03:45:10
Please write comment about |features|.
nhiroki
2017/01/25 10:16:11
Done.
| |
543 std::vector<char> /* features */) | |
544 | |
545 // Sent when the worker is destroyed. | |
546 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerDestroyed) | |
547 | |
548 // Sent when the worker calls API that should be recored in UseCounter. | |
549 IPC_MESSAGE_ROUTED1(ViewMsg_CountFeatureOnSharedWorker, | |
550 uint32_t /* feature */) | |
543 | 551 |
544 // Sent by the browser to synchronize with the next compositor frame. Used only | 552 // Sent by the browser to synchronize with the next compositor frame. Used only |
545 // for tests. | 553 // for tests. |
546 IPC_MESSAGE_ROUTED1(ViewMsg_WaitForNextFrameForTests, int /* routing_id */) | 554 IPC_MESSAGE_ROUTED1(ViewMsg_WaitForNextFrameForTests, int /* routing_id */) |
547 | 555 |
548 #if BUILDFLAG(ENABLE_PLUGINS) | 556 #if BUILDFLAG(ENABLE_PLUGINS) |
549 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 557 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
550 // Tells the renderer that the channel to the broker has been created. | 558 // Tells the renderer that the channel to the broker has been created. |
551 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, | 559 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, |
552 base::ProcessId /* broker_pid */, | 560 base::ProcessId /* broker_pid */, |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
892 int /* y */) | 900 int /* y */) |
893 | 901 |
894 #elif defined(OS_MACOSX) | 902 #elif defined(OS_MACOSX) |
895 // Receives content of a web page as plain text. | 903 // Receives content of a web page as plain text. |
896 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 904 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
897 #endif | 905 #endif |
898 | 906 |
899 // Adding a new message? Stick to the sort order above: first platform | 907 // Adding a new message? Stick to the sort order above: first platform |
900 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 908 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
901 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 909 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |