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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 virtual void clearCachedMetadata(const blink::WebURL&); | 96 virtual void clearCachedMetadata(const blink::WebURL&); |
97 virtual void workerReadyForInspection(); | 97 virtual void workerReadyForInspection(); |
98 | 98 |
99 // Called on the main thread. | 99 // Called on the main thread. |
100 virtual void workerContextFailedToStart(); | 100 virtual void workerContextFailedToStart(); |
101 | 101 |
102 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); | 102 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); |
103 virtual void didEvaluateWorkerScript(bool success); | 103 virtual void didEvaluateWorkerScript(bool success); |
104 virtual void didInitializeWorkerContext(v8::Local<v8::Context> context, | 104 virtual void didInitializeWorkerContext(v8::Local<v8::Context> context, |
105 const blink::WebURL& url); | 105 const blink::WebURL& url); |
106 virtual void willDestroyWorkerContext(v8::Local<v8::Context> context); | 106 virtual void willDestroyWorkerContext(); |
107 virtual void workerContextDestroyed(); | 107 virtual void workerContextDestroyed(); |
108 virtual void reportException(const blink::WebString& error_message, | 108 virtual void reportException(const blink::WebString& error_message, |
109 int line_number, | 109 int line_number, |
110 int column_number, | 110 int column_number, |
111 const blink::WebString& source_url); | 111 const blink::WebString& source_url); |
112 virtual void reportConsoleMessage(int source, | 112 virtual void reportConsoleMessage(int source, |
113 int level, | 113 int level, |
114 const blink::WebString& message, | 114 const blink::WebString& message, |
115 int line_number, | 115 int line_number, |
116 const blink::WebString& source_url); | 116 const blink::WebString& source_url); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // Initialized on the worker thread in workerContextStarted and | 232 // Initialized on the worker thread in workerContextStarted and |
233 // destructed on the worker thread in willDestroyWorkerContext. | 233 // destructed on the worker thread in willDestroyWorkerContext. |
234 scoped_ptr<WorkerContextData> context_; | 234 scoped_ptr<WorkerContextData> context_; |
235 | 235 |
236 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 236 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
237 }; | 237 }; |
238 | 238 |
239 } // namespace content | 239 } // namespace content |
240 | 240 |
241 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 241 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
OLD | NEW |