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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 virtual void openWindow(const blink::WebURL&, | 91 virtual void openWindow(const blink::WebURL&, |
92 blink::WebServiceWorkerClientCallbacks*); | 92 blink::WebServiceWorkerClientCallbacks*); |
93 virtual void setCachedMetadata(const blink::WebURL&, | 93 virtual void setCachedMetadata(const blink::WebURL&, |
94 const char* data, | 94 const char* data, |
95 size_t size); | 95 size_t size); |
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 virtual void workerScriptLoaded(); |
101 | 102 |
102 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); | 103 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); |
103 virtual void didEvaluateWorkerScript(bool success); | 104 virtual void didEvaluateWorkerScript(bool success); |
104 virtual void didInitializeWorkerContext(v8::Local<v8::Context> context, | 105 virtual void didInitializeWorkerContext(v8::Local<v8::Context> context, |
105 const blink::WebURL& url); | 106 const blink::WebURL& url); |
106 virtual void willDestroyWorkerContext(v8::Local<v8::Context> context); | 107 virtual void willDestroyWorkerContext(v8::Local<v8::Context> context); |
107 virtual void workerContextDestroyed(); | 108 virtual void workerContextDestroyed(); |
108 virtual void reportException(const blink::WebString& error_message, | 109 virtual void reportException(const blink::WebString& error_message, |
109 int line_number, | 110 int line_number, |
110 int column_number, | 111 int column_number, |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // Initialized on the worker thread in workerContextStarted and | 233 // Initialized on the worker thread in workerContextStarted and |
233 // destructed on the worker thread in willDestroyWorkerContext. | 234 // destructed on the worker thread in willDestroyWorkerContext. |
234 scoped_ptr<WorkerContextData> context_; | 235 scoped_ptr<WorkerContextData> context_; |
235 | 236 |
236 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 237 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
237 }; | 238 }; |
238 | 239 |
239 } // namespace content | 240 } // namespace content |
240 | 241 |
241 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 242 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
OLD | NEW |