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

Side by Side Diff: content/common/worker_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 // Defines messages between the browser and worker process, as well as between 5 // Defines messages between the browser and worker process, as well as between
6 // the renderer and worker process. 6 // the renderer and worker process.
7 7
8 // Multiply-included message file, hence no include guard. 8 // Multiply-included message file, hence no include guard.
9 9
10 #include <string> 10 #include <string>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 int /* sent_message_port_id */, 82 int /* sent_message_port_id */,
83 int /* routing_id */) 83 int /* routing_id */)
84 84
85 IPC_MESSAGE_ROUTED0(WorkerMsg_WorkerObjectDestroyed) 85 IPC_MESSAGE_ROUTED0(WorkerMsg_WorkerObjectDestroyed)
86 86
87 87
88 //----------------------------------------------------------------------------- 88 //-----------------------------------------------------------------------------
89 // WorkerHost messages 89 // WorkerHost messages
90 // These are messages sent from the worker (renderer process) to the worker 90 // These are messages sent from the worker (renderer process) to the worker
91 // host (browser process). 91 // host (browser process).
92
93 // Sent when the worker calls API that should be recored in UseCounter.
94 // |feature| must be one of the values from blink::UseCounter::Feature
95 // enum.
96 IPC_MESSAGE_CONTROL2(WorkerHostMsg_CountFeature,
97 int /* worker_route_id */,
98 uint32_t /* feature */)
99
92 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, 100 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed,
93 int /* worker_route_id */) 101 int /* worker_route_id */)
94 102
95 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextDestroyed, 103 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextDestroyed,
96 int /* worker_route_id */) 104 int /* worker_route_id */)
97 105
98 // Renderer -> Browser message to indicate that the worker is ready for 106 // Renderer -> Browser message to indicate that the worker is ready for
99 // inspection. 107 // inspection.
100 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerReadyForInspection, 108 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerReadyForInspection,
101 int /* worker_route_id */) 109 int /* worker_route_id */)
102 110
103 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoaded, 111 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoaded,
104 int /* worker_route_id */) 112 int /* worker_route_id */)
105 113
106 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoadFailed, 114 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoadFailed,
107 int /* worker_route_id */) 115 int /* worker_route_id */)
108 116
109 IPC_MESSAGE_CONTROL2(WorkerHostMsg_WorkerConnected, 117 IPC_MESSAGE_CONTROL2(WorkerHostMsg_WorkerConnected,
110 int /* message_port_id */, 118 int /* message_port_id */,
111 int /* worker_route_id */) 119 int /* worker_route_id */)
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/shared_worker/embedded_shared_worker_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698