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 // |features| contains numbers of blink::UseCounter::Feature that are used on |
| 542 // the worker global scope so far. |
| 543 IPC_MESSAGE_ROUTED1(ViewMsg_WorkerConnected, |
| 544 std::set<uint32_t> /* features */) |
| 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 // |feature| is a number of blink::UseCounter::Feature. |
| 551 IPC_MESSAGE_ROUTED1(ViewMsg_CountFeatureOnSharedWorker, |
| 552 uint32_t /* feature */) |
542 | 553 |
543 // Sent by the browser to synchronize with the next compositor frame. Used only | 554 // Sent by the browser to synchronize with the next compositor frame. Used only |
544 // for tests. | 555 // for tests. |
545 IPC_MESSAGE_ROUTED1(ViewMsg_WaitForNextFrameForTests, int /* routing_id */) | 556 IPC_MESSAGE_ROUTED1(ViewMsg_WaitForNextFrameForTests, int /* routing_id */) |
546 | 557 |
547 #if BUILDFLAG(ENABLE_PLUGINS) | 558 #if BUILDFLAG(ENABLE_PLUGINS) |
548 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 559 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
549 // Tells the renderer that the channel to the broker has been created. | 560 // Tells the renderer that the channel to the broker has been created. |
550 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, | 561 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, |
551 base::ProcessId /* broker_pid */, | 562 base::ProcessId /* broker_pid */, |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 int /* y */) | 898 int /* y */) |
888 | 899 |
889 #elif defined(OS_MACOSX) | 900 #elif defined(OS_MACOSX) |
890 // Receives content of a web page as plain text. | 901 // Receives content of a web page as plain text. |
891 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 902 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
892 #endif | 903 #endif |
893 | 904 |
894 // Adding a new message? Stick to the sort order above: first platform | 905 // Adding a new message? Stick to the sort order above: first platform |
895 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 906 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
896 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 907 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |