| 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_SCRIPT_CONTEXT_H_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ |
| 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 void OnOpenWindowResponse(int request_id, | 138 void OnOpenWindowResponse(int request_id, |
| 139 const ServiceWorkerClientInfo& client); | 139 const ServiceWorkerClientInfo& client); |
| 140 void OnOpenWindowError(int request_id); | 140 void OnOpenWindowError(int request_id); |
| 141 void OnFocusClientResponse(int request_id, | 141 void OnFocusClientResponse(int request_id, |
| 142 const ServiceWorkerClientInfo& client); | 142 const ServiceWorkerClientInfo& client); |
| 143 void OnDidSkipWaiting(int request_id); | 143 void OnDidSkipWaiting(int request_id); |
| 144 void OnDidClaimClients(int request_id); | 144 void OnDidClaimClients(int request_id); |
| 145 void OnClaimClientsError(int request_id, | 145 void OnClaimClientsError(int request_id, |
| 146 blink::WebServiceWorkerError::ErrorType error_type, | 146 blink::WebServiceWorkerError::ErrorType error_type, |
| 147 const base::string16& message); | 147 const base::string16& message); |
| 148 void OnPing(); |
| 148 | 149 |
| 149 scoped_ptr<ServiceWorkerCacheStorageDispatcher> cache_storage_dispatcher_; | 150 scoped_ptr<ServiceWorkerCacheStorageDispatcher> cache_storage_dispatcher_; |
| 150 | 151 |
| 151 // Not owned; embedded_context_ owns this. | 152 // Not owned; embedded_context_ owns this. |
| 152 EmbeddedWorkerContextClient* embedded_context_; | 153 EmbeddedWorkerContextClient* embedded_context_; |
| 153 | 154 |
| 154 // Not owned; this object is destroyed when proxy_ becomes invalid. | 155 // Not owned; this object is destroyed when proxy_ becomes invalid. |
| 155 blink::WebServiceWorkerContextProxy* proxy_; | 156 blink::WebServiceWorkerContextProxy* proxy_; |
| 156 | 157 |
| 157 // Used for incoming messages from the browser for which an outgoing response | 158 // Used for incoming messages from the browser for which an outgoing response |
| (...skipping 19 matching lines...) Expand all Loading... |
| 177 std::map<int, base::TimeTicks> install_start_timings_; | 178 std::map<int, base::TimeTicks> install_start_timings_; |
| 178 std::map<int, base::TimeTicks> notification_click_start_timings_; | 179 std::map<int, base::TimeTicks> notification_click_start_timings_; |
| 179 std::map<int, base::TimeTicks> push_start_timings_; | 180 std::map<int, base::TimeTicks> push_start_timings_; |
| 180 | 181 |
| 181 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); | 182 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 } // namespace content | 185 } // namespace content |
| 185 | 186 |
| 186 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ | 187 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ |
| OLD | NEW |