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