| 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 reportException(const blink::WebString& error_message, |
| 65 int line_number, |
| 66 int column_number, |
| 67 const blink::WebString& source_url); |
| 64 virtual void didHandleActivateEvent(int request_id, | 68 virtual void didHandleActivateEvent(int request_id, |
| 65 blink::WebServiceWorkerEventResult); | 69 blink::WebServiceWorkerEventResult); |
| 66 virtual void didHandleInstallEvent(int request_id, | 70 virtual void didHandleInstallEvent(int request_id, |
| 67 blink::WebServiceWorkerEventResult result); | 71 blink::WebServiceWorkerEventResult result); |
| 68 virtual void didHandleFetchEvent(int request_id); | 72 virtual void didHandleFetchEvent(int request_id); |
| 69 virtual void didHandleFetchEvent( | 73 virtual void didHandleFetchEvent( |
| 70 int request_id, | 74 int request_id, |
| 71 const blink::WebServiceWorkerResponse& response); | 75 const blink::WebServiceWorkerResponse& response); |
| 72 virtual blink::WebServiceWorkerNetworkProvider* | 76 virtual blink::WebServiceWorkerNetworkProvider* |
| 73 createServiceWorkerNetworkProvider(blink::WebDataSource* data_source); | 77 createServiceWorkerNetworkProvider(blink::WebDataSource* data_source); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 97 scoped_ptr<ServiceWorkerScriptContext> script_context_; | 101 scoped_ptr<ServiceWorkerScriptContext> script_context_; |
| 98 | 102 |
| 99 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; | 103 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; |
| 100 | 104 |
| 101 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); | 105 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); |
| 102 }; | 106 }; |
| 103 | 107 |
| 104 } // namespace content | 108 } // namespace content |
| 105 | 109 |
| 106 #endif // CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_CLIENT_H_ | 110 #endif // CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_CLIENT_H_ |
| OLD | NEW |