| 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_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_CLIENT_H_ | 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_CLIENT_H_ |
| 6 #define CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_CLIENT_H_ | 6 #define CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 bool OnMessageReceived(const IPC::Message& msg); | 55 bool OnMessageReceived(const IPC::Message& msg); |
| 56 | 56 |
| 57 void SendMessageToBrowser(int request_id, const IPC::Message& message); | 57 void SendMessageToBrowser(int request_id, const IPC::Message& message); |
| 58 | 58 |
| 59 // WebServiceWorkerContextClient overrides, some of them are just dispatched | 59 // WebServiceWorkerContextClient overrides, some of them are just dispatched |
| 60 // on to script_context_. | 60 // on to script_context_. |
| 61 virtual void workerContextFailedToStart(); | 61 virtual void workerContextFailedToStart(); |
| 62 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); | 62 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); |
| 63 virtual void workerContextDestroyed(); | 63 virtual void workerContextDestroyed(); |
| 64 virtual void didHandleActivateEvent(int request_id, |
| 65 blink::WebServiceWorkerEventResult); |
| 64 virtual void didHandleInstallEvent(int request_id, | 66 virtual void didHandleInstallEvent(int request_id, |
| 65 blink::WebServiceWorkerEventResult result); | 67 blink::WebServiceWorkerEventResult result); |
| 66 virtual void didHandleFetchEvent(int request_id); | 68 virtual void didHandleFetchEvent(int request_id); |
| 67 virtual void didHandleFetchEvent( | 69 virtual void didHandleFetchEvent( |
| 68 int request_id, | 70 int request_id, |
| 69 const blink::WebServiceWorkerResponse& response); | 71 const blink::WebServiceWorkerResponse& response); |
| 70 virtual blink::WebServiceWorkerNetworkProvider* | 72 virtual blink::WebServiceWorkerNetworkProvider* |
| 71 createServiceWorkerNetworkProvider(blink::WebDataSource* data_source); | 73 createServiceWorkerNetworkProvider(blink::WebDataSource* data_source); |
| 72 | 74 |
| 73 // TODO: Implement DevTools related method overrides. | 75 // TODO: Implement DevTools related method overrides. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 94 scoped_ptr<ServiceWorkerScriptContext> script_context_; | 96 scoped_ptr<ServiceWorkerScriptContext> script_context_; |
| 95 | 97 |
| 96 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; | 98 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; |
| 97 | 99 |
| 98 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); | 100 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); |
| 99 }; | 101 }; |
| 100 | 102 |
| 101 } // namespace content | 103 } // namespace content |
| 102 | 104 |
| 103 #endif // CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_CLIENT_H_ | 105 #endif // CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_CLIENT_H_ |
| OLD | NEW |