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 // |features| contains numbers of blink::UseCounter::Feature that are used on |
| 543 // the worker global scope so far. |
| 544 IPC_MESSAGE_ROUTED1(ViewMsg_WorkerConnected, |
| 545 std::set<uint32_t> /* features */) |
| 546 |
| 547 // Sent when the worker is destroyed. |
| 548 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerDestroyed) |
| 549 |
| 550 // Sent when the worker calls API that should be recored in UseCounter. |
| 551 // |feature| is a number of blink::UseCounter::Feature. |
| 552 IPC_MESSAGE_ROUTED1(ViewMsg_CountFeatureOnSharedWorker, |
| 553 uint32_t /* feature */) |
543 | 554 |
544 // 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 |
545 // for tests. | 556 // for tests. |
546 IPC_MESSAGE_ROUTED1(ViewMsg_WaitForNextFrameForTests, int /* routing_id */) | 557 IPC_MESSAGE_ROUTED1(ViewMsg_WaitForNextFrameForTests, int /* routing_id */) |
547 | 558 |
548 #if BUILDFLAG(ENABLE_PLUGINS) | 559 #if BUILDFLAG(ENABLE_PLUGINS) |
549 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 560 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
550 // 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. |
551 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, | 562 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, |
552 base::ProcessId /* broker_pid */, | 563 base::ProcessId /* broker_pid */, |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
892 int /* y */) | 903 int /* y */) |
893 | 904 |
894 #elif defined(OS_MACOSX) | 905 #elif defined(OS_MACOSX) |
895 // Receives content of a web page as plain text. | 906 // Receives content of a web page as plain text. |
896 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 907 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
897 #endif | 908 #endif |
898 | 909 |
899 // Adding a new message? Stick to the sort order above: first platform | 910 // Adding a new message? Stick to the sort order above: first platform |
900 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 911 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
901 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 912 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |