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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 const std::vector<int>& new_routing_ids); | 135 const std::vector<int>& new_routing_ids); |
136 void OnCrossOriginMessageToWorker( | 136 void OnCrossOriginMessageToWorker( |
137 const NavigatorConnectClient& client, | 137 const NavigatorConnectClient& client, |
138 const base::string16& message, | 138 const base::string16& message, |
139 const std::vector<TransferredMessagePort>& sent_message_ports, | 139 const std::vector<TransferredMessagePort>& sent_message_ports, |
140 const std::vector<int>& new_routing_ids); | 140 const std::vector<int>& new_routing_ids); |
141 void OnDidGetClients( | 141 void OnDidGetClients( |
142 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); | 142 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); |
143 void OnOpenWindowResponse(int request_id, | 143 void OnOpenWindowResponse(int request_id, |
144 const ServiceWorkerClientInfo& client); | 144 const ServiceWorkerClientInfo& client); |
145 void OnOpenWindowError(int request_id); | 145 void OnOpenWindowError(int request_id, const std::string& message); |
146 void OnFocusClientResponse(int request_id, | 146 void OnFocusClientResponse(int request_id, |
147 const ServiceWorkerClientInfo& client); | 147 const ServiceWorkerClientInfo& client); |
148 void OnDidSkipWaiting(int request_id); | 148 void OnDidSkipWaiting(int request_id); |
149 void OnDidClaimClients(int request_id); | 149 void OnDidClaimClients(int request_id); |
150 void OnClaimClientsError(int request_id, | 150 void OnClaimClientsError(int request_id, |
151 blink::WebServiceWorkerError::ErrorType error_type, | 151 blink::WebServiceWorkerError::ErrorType error_type, |
152 const base::string16& message); | 152 const base::string16& message); |
153 void OnPing(); | 153 void OnPing(); |
154 | 154 |
155 scoped_ptr<ServiceWorkerCacheStorageDispatcher> cache_storage_dispatcher_; | 155 scoped_ptr<ServiceWorkerCacheStorageDispatcher> cache_storage_dispatcher_; |
(...skipping 27 matching lines...) Expand all Loading... |
183 std::map<int, base::TimeTicks> install_start_timings_; | 183 std::map<int, base::TimeTicks> install_start_timings_; |
184 std::map<int, base::TimeTicks> notification_click_start_timings_; | 184 std::map<int, base::TimeTicks> notification_click_start_timings_; |
185 std::map<int, base::TimeTicks> push_start_timings_; | 185 std::map<int, base::TimeTicks> push_start_timings_; |
186 | 186 |
187 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); | 187 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); |
188 }; | 188 }; |
189 | 189 |
190 } // namespace content | 190 } // namespace content |
191 | 191 |
192 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ | 192 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ |
OLD | NEW |