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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 virtual ~EmbeddedWorkerContextClient(); | 57 virtual ~EmbeddedWorkerContextClient(); |
58 | 58 |
59 bool OnMessageReceived(const IPC::Message& msg); | 59 bool OnMessageReceived(const IPC::Message& msg); |
60 | 60 |
61 void Send(IPC::Message* message); | 61 void Send(IPC::Message* message); |
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 void didPauseAfterDownload(); | 67 virtual void didPauseAfterDownload(); |
67 virtual void getClients(blink::WebServiceWorkerClientsCallbacks*); | 68 virtual void getClients(blink::WebServiceWorkerClientsCallbacks*); |
68 virtual void workerContextFailedToStart(); | 69 virtual void workerContextFailedToStart(); |
69 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); | 70 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); |
70 virtual void willDestroyWorkerContext(); | 71 virtual void willDestroyWorkerContext(); |
71 virtual void workerContextDestroyed(); | 72 virtual void workerContextDestroyed(); |
72 virtual void reportException(const blink::WebString& error_message, | 73 virtual void reportException(const blink::WebString& error_message, |
73 int line_number, | 74 int line_number, |
74 int column_number, | 75 int column_number, |
75 const blink::WebString& source_url); | 76 const blink::WebString& source_url); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 scoped_ptr<ServiceWorkerScriptContext> script_context_; | 123 scoped_ptr<ServiceWorkerScriptContext> script_context_; |
123 | 124 |
124 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; | 125 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; |
125 | 126 |
126 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); | 127 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); |
127 }; | 128 }; |
128 | 129 |
129 } // namespace content | 130 } // namespace content |
130 | 131 |
131 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ | 132 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ |
OLD | NEW |