Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: content/common/view_messages.h

Issue 2586863002: Worker: Enable UseCounter for SharedWorkerGlobalScope (Closed)
Patch Set: simplify Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 // |used_features| is the set of features that the worker has used. The values
542 // must be from blink::UseCounter::Feature enum.
543 IPC_MESSAGE_ROUTED1(ViewMsg_WorkerConnected,
544 std::set<uint32_t> /* used_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| must be one of the values from blink::UseCounter::Feature
551 // enum.
552 IPC_MESSAGE_ROUTED1(ViewMsg_CountFeatureOnSharedWorker,
553 uint32_t /* feature */)
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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 int /* y */) 884 int /* y */)
873 885
874 #elif defined(OS_MACOSX) 886 #elif defined(OS_MACOSX)
875 // Receives content of a web page as plain text. 887 // Receives content of a web page as plain text.
876 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) 888 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string)
877 #endif 889 #endif
878 890
879 // Adding a new message? Stick to the sort order above: first platform 891 // Adding a new message? Stick to the sort order above: first platform
880 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 892 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
881 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 893 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/browser/shared_worker/shared_worker_service_impl_unittest.cc ('k') | content/common/worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698