| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void Send(IPC::Message* message); | 59 void Send(IPC::Message* message); |
| 60 | 60 |
| 61 // WebServiceWorkerContextClient overrides, some of them are just dispatched | 61 // WebServiceWorkerContextClient overrides, some of them are just dispatched |
| 62 // on to script_context_. | 62 // on to script_context_. |
| 63 virtual blink::WebURL scope() const; | 63 virtual blink::WebURL scope() const; |
| 64 virtual blink::WebServiceWorkerCacheStorage* cacheStorage(); | 64 virtual blink::WebServiceWorkerCacheStorage* cacheStorage(); |
| 65 virtual void didPauseAfterDownload(); | 65 virtual void didPauseAfterDownload(); |
| 66 virtual void getClients(blink::WebServiceWorkerClientsCallbacks*); | 66 virtual void getClients(blink::WebServiceWorkerClientsCallbacks*); |
| 67 virtual void openWindow(const blink::WebURL&, | 67 virtual void openWindow(const blink::WebURL&, |
| 68 blink::WebServiceWorkerClientCallbacks*); | 68 blink::WebServiceWorkerClientCallbacks*); |
| 69 virtual void setCachedMetadata(const blink::WebURL&, |
| 70 const char* data, |
| 71 size_t size); |
| 72 virtual void clearCachedMetadata(const blink::WebURL&); |
| 69 virtual void workerReadyForInspection(); | 73 virtual void workerReadyForInspection(); |
| 70 | 74 |
| 71 // Called on the main thread. | 75 // Called on the main thread. |
| 72 virtual void workerContextFailedToStart(); | 76 virtual void workerContextFailedToStart(); |
| 73 | 77 |
| 74 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); | 78 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); |
| 75 virtual void didEvaluateWorkerScript(bool success); | 79 virtual void didEvaluateWorkerScript(bool success); |
| 76 virtual void willDestroyWorkerContext(); | 80 virtual void willDestroyWorkerContext(); |
| 77 virtual void workerContextDestroyed(); | 81 virtual void workerContextDestroyed(); |
| 78 virtual void reportException(const blink::WebString& error_message, | 82 virtual void reportException(const blink::WebString& error_message, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 scoped_refptr<ServiceWorkerProviderContext> provider_context_; | 155 scoped_refptr<ServiceWorkerProviderContext> provider_context_; |
| 152 | 156 |
| 153 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; | 157 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; |
| 154 | 158 |
| 155 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); | 159 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); |
| 156 }; | 160 }; |
| 157 | 161 |
| 158 } // namespace content | 162 } // namespace content |
| 159 | 163 |
| 160 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ | 164 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |