OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ |
6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // WebServiceWorkerContextClient overrides, some of them are just dispatched | 63 // WebServiceWorkerContextClient overrides, some of them are just dispatched |
64 // on to script_context_. | 64 // on to script_context_. |
65 virtual blink::WebURL scope() const; | 65 virtual blink::WebURL scope() const; |
66 virtual blink::WebServiceWorkerCacheStorage* cacheStorage(); | 66 virtual blink::WebServiceWorkerCacheStorage* cacheStorage(); |
67 virtual void didPauseAfterDownload(); | 67 virtual void didPauseAfterDownload(); |
68 virtual void getClients(blink::WebServiceWorkerClientsCallbacks*); | 68 virtual void getClients(blink::WebServiceWorkerClientsCallbacks*); |
69 virtual void workerReadyForInspection(); | 69 virtual void workerReadyForInspection(); |
70 virtual void workerContextFailedToStart(); | 70 virtual void workerContextFailedToStart(); |
71 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); | 71 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); |
| 72 virtual void didEvaluateWorkerScript(bool success); |
72 virtual void willDestroyWorkerContext(); | 73 virtual void willDestroyWorkerContext(); |
73 virtual void workerContextDestroyed(); | 74 virtual void workerContextDestroyed(); |
74 virtual void reportException(const blink::WebString& error_message, | 75 virtual void reportException(const blink::WebString& error_message, |
75 int line_number, | 76 int line_number, |
76 int column_number, | 77 int column_number, |
77 const blink::WebString& source_url); | 78 const blink::WebString& source_url); |
78 virtual void reportConsoleMessage(int source, | 79 virtual void reportConsoleMessage(int source, |
79 int level, | 80 int level, |
80 const blink::WebString& message, | 81 const blink::WebString& message, |
81 int line_number, | 82 int line_number, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 scoped_ptr<ServiceWorkerScriptContext> script_context_; | 125 scoped_ptr<ServiceWorkerScriptContext> script_context_; |
125 | 126 |
126 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; | 127 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; |
127 | 128 |
128 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); | 129 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); |
129 }; | 130 }; |
130 | 131 |
131 } // namespace content | 132 } // namespace content |
132 | 133 |
133 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ | 134 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ |
OLD | NEW |