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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 bool OnMessageReceived(const IPC::Message& msg); | 61 bool OnMessageReceived(const IPC::Message& msg); |
62 | 62 |
63 void Send(IPC::Message* message); | 63 void Send(IPC::Message* message); |
64 | 64 |
65 // WebServiceWorkerContextClient overrides, some of them are just dispatched | 65 // WebServiceWorkerContextClient overrides, some of them are just dispatched |
66 // on to script_context_. | 66 // on to script_context_. |
67 virtual blink::WebURL scope() const; | 67 virtual blink::WebURL scope() const; |
68 virtual blink::WebServiceWorkerCacheStorage* cacheStorage(); | 68 virtual blink::WebServiceWorkerCacheStorage* cacheStorage(); |
69 virtual void didPauseAfterDownload(); | 69 virtual void didPauseAfterDownload(); |
70 virtual void getClients(blink::WebServiceWorkerClientsCallbacks*); | 70 virtual void getClients(blink::WebServiceWorkerClientsCallbacks*); |
| 71 virtual void openWindow(const blink::WebURL&, |
| 72 blink::WebServiceWorkerClientCallbacks*); |
71 virtual void workerReadyForInspection(); | 73 virtual void workerReadyForInspection(); |
72 virtual void workerContextFailedToStart(); | 74 virtual void workerContextFailedToStart(); |
73 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); | 75 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); |
74 virtual void didEvaluateWorkerScript(bool success); | 76 virtual void didEvaluateWorkerScript(bool success); |
75 virtual void willDestroyWorkerContext(); | 77 virtual void willDestroyWorkerContext(); |
76 virtual void workerContextDestroyed(); | 78 virtual void workerContextDestroyed(); |
77 virtual void reportException(const blink::WebString& error_message, | 79 virtual void reportException(const blink::WebString& error_message, |
78 int line_number, | 80 int line_number, |
79 int column_number, | 81 int column_number, |
80 const blink::WebString& source_url); | 82 const blink::WebString& source_url); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 scoped_ptr<ServiceWorkerScriptContext> script_context_; | 144 scoped_ptr<ServiceWorkerScriptContext> script_context_; |
143 | 145 |
144 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; | 146 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; |
145 | 147 |
146 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); | 148 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); |
147 }; | 149 }; |
148 | 150 |
149 } // namespace content | 151 } // namespace content |
150 | 152 |
151 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ | 153 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ |
OLD | NEW |