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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 virtual ~EmbeddedWorkerContextClient(); | 56 virtual ~EmbeddedWorkerContextClient(); |
57 | 57 |
58 bool OnMessageReceived(const IPC::Message& msg); | 58 bool OnMessageReceived(const IPC::Message& msg); |
59 | 59 |
60 void Send(IPC::Message* message); | 60 void Send(IPC::Message* message); |
61 | 61 |
62 // WebServiceWorkerContextClient overrides, some of them are just dispatched | 62 // WebServiceWorkerContextClient overrides, some of them are just dispatched |
63 // on to script_context_. | 63 // on to script_context_. |
64 virtual blink::WebURL scope() const; | 64 virtual blink::WebURL scope() const; |
| 65 // TODO(jsbell): Remove this once Blink is updated. http://crbug.com/439389 |
65 virtual blink::WebServiceWorkerCacheStorage* cacheStorage(); | 66 virtual blink::WebServiceWorkerCacheStorage* cacheStorage(); |
66 virtual void didPauseAfterDownload(); | 67 virtual void didPauseAfterDownload(); |
67 virtual void getClients(const blink::WebServiceWorkerClientQueryOptions&, | 68 virtual void getClients(const blink::WebServiceWorkerClientQueryOptions&, |
68 blink::WebServiceWorkerClientsCallbacks*); | 69 blink::WebServiceWorkerClientsCallbacks*); |
69 virtual void openWindow(const blink::WebURL&, | 70 virtual void openWindow(const blink::WebURL&, |
70 blink::WebServiceWorkerClientCallbacks*); | 71 blink::WebServiceWorkerClientCallbacks*); |
71 virtual void setCachedMetadata(const blink::WebURL&, | 72 virtual void setCachedMetadata(const blink::WebURL&, |
72 const char* data, | 73 const char* data, |
73 size_t size); | 74 size_t size); |
74 virtual void clearCachedMetadata(const blink::WebURL&); | 75 virtual void clearCachedMetadata(const blink::WebURL&); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 scoped_refptr<ServiceWorkerProviderContext> provider_context_; | 163 scoped_refptr<ServiceWorkerProviderContext> provider_context_; |
163 | 164 |
164 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; | 165 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; |
165 | 166 |
166 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); | 167 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); |
167 }; | 168 }; |
168 | 169 |
169 } // namespace content | 170 } // namespace content |
170 | 171 |
171 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ | 172 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ |
OLD | NEW |