OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void workerContextFailedToStart() override; | 116 void workerContextFailedToStart() override; |
117 void workerScriptLoaded() override; | 117 void workerScriptLoaded() override; |
118 bool hasAssociatedRegistration() override; | 118 bool hasAssociatedRegistration() override; |
119 | 119 |
120 void workerContextStarted( | 120 void workerContextStarted( |
121 blink::WebServiceWorkerContextProxy* proxy) override; | 121 blink::WebServiceWorkerContextProxy* proxy) override; |
122 void didEvaluateWorkerScript(bool success) override; | 122 void didEvaluateWorkerScript(bool success) override; |
123 void didInitializeWorkerContext(v8::Local<v8::Context> context) override; | 123 void didInitializeWorkerContext(v8::Local<v8::Context> context) override; |
124 void willDestroyWorkerContext(v8::Local<v8::Context> context) override; | 124 void willDestroyWorkerContext(v8::Local<v8::Context> context) override; |
125 void workerContextDestroyed() override; | 125 void workerContextDestroyed() override; |
| 126 void countFeature(uint32_t feature) override; |
126 void reportException(const blink::WebString& error_message, | 127 void reportException(const blink::WebString& error_message, |
127 int line_number, | 128 int line_number, |
128 int column_number, | 129 int column_number, |
129 const blink::WebString& source_url) override; | 130 const blink::WebString& source_url) override; |
130 void reportConsoleMessage(int source, | 131 void reportConsoleMessage(int source, |
131 int level, | 132 int level, |
132 const blink::WebString& message, | 133 const blink::WebString& message, |
133 int line_number, | 134 int line_number, |
134 const blink::WebString& source_url) override; | 135 const blink::WebString& source_url) override; |
135 void sendDevToolsMessage(int session_id, | 136 void sendDevToolsMessage(int session_id, |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 // Initialized on the worker thread in workerContextStarted and | 300 // Initialized on the worker thread in workerContextStarted and |
300 // destructed on the worker thread in willDestroyWorkerContext. | 301 // destructed on the worker thread in willDestroyWorkerContext. |
301 std::unique_ptr<WorkerContextData> context_; | 302 std::unique_ptr<WorkerContextData> context_; |
302 | 303 |
303 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 304 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
304 }; | 305 }; |
305 | 306 |
306 } // namespace content | 307 } // namespace content |
307 | 308 |
308 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 309 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
OLD | NEW |