OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void workerContextDestroyed() override; | 109 void workerContextDestroyed() override; |
110 void reportException(const blink::WebString& error_message, | 110 void reportException(const blink::WebString& error_message, |
111 int line_number, | 111 int line_number, |
112 int column_number, | 112 int column_number, |
113 const blink::WebString& source_url) override; | 113 const blink::WebString& source_url) override; |
114 void reportConsoleMessage(int source, | 114 void reportConsoleMessage(int source, |
115 int level, | 115 int level, |
116 const blink::WebString& message, | 116 const blink::WebString& message, |
117 int line_number, | 117 int line_number, |
118 const blink::WebString& source_url) override; | 118 const blink::WebString& source_url) override; |
119 void sendDevToolsMessage(int call_id, | 119 void sendDevToolsMessage(int session_id, |
| 120 int call_id, |
120 const blink::WebString& message, | 121 const blink::WebString& message, |
121 const blink::WebString& state) override; | 122 const blink::WebString& state) override; |
122 void didHandleActivateEvent(int request_id, | 123 void didHandleActivateEvent(int request_id, |
123 blink::WebServiceWorkerEventResult) override; | 124 blink::WebServiceWorkerEventResult) override; |
124 void didHandleInstallEvent( | 125 void didHandleInstallEvent( |
125 int request_id, | 126 int request_id, |
126 blink::WebServiceWorkerEventResult result) override; | 127 blink::WebServiceWorkerEventResult result) override; |
127 void didHandleFetchEvent(int request_id) override; | 128 void didHandleFetchEvent(int request_id) override; |
128 void didHandleFetchEvent( | 129 void didHandleFetchEvent( |
129 int request_id, | 130 int request_id, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // Initialized on the worker thread in workerContextStarted and | 240 // Initialized on the worker thread in workerContextStarted and |
240 // destructed on the worker thread in willDestroyWorkerContext. | 241 // destructed on the worker thread in willDestroyWorkerContext. |
241 scoped_ptr<WorkerContextData> context_; | 242 scoped_ptr<WorkerContextData> context_; |
242 | 243 |
243 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 244 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
244 }; | 245 }; |
245 | 246 |
246 } // namespace content | 247 } // namespace content |
247 | 248 |
248 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 249 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
OLD | NEW |