| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 const std::string& notification_id); | 96 const std::string& notification_id); |
| 97 void OnPushEvent(int request_id, const std::string& data); | 97 void OnPushEvent(int request_id, const std::string& data); |
| 98 void OnGeofencingEvent(int request_id, | 98 void OnGeofencingEvent(int request_id, |
| 99 blink::WebGeofencingEventType event_type, | 99 blink::WebGeofencingEventType event_type, |
| 100 const std::string& region_id, | 100 const std::string& region_id, |
| 101 const blink::WebCircularGeofencingRegion& region); | 101 const blink::WebCircularGeofencingRegion& region); |
| 102 void OnPostMessage(const base::string16& message, | 102 void OnPostMessage(const base::string16& message, |
| 103 const std::vector<int>& sent_message_port_ids, | 103 const std::vector<int>& sent_message_port_ids, |
| 104 const std::vector<int>& new_routing_ids); | 104 const std::vector<int>& new_routing_ids); |
| 105 void OnDidGetClientDocuments( | 105 void OnDidGetClientDocuments( |
| 106 int request_id, const std::vector<int>& client_ids); | 106 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); |
| 107 void OnFocusClientResponse(int request_id, bool result); | 107 void OnFocusClientResponse(int request_id, bool result); |
| 108 | 108 |
| 109 scoped_ptr<ServiceWorkerCacheStorageDispatcher> cache_storage_dispatcher_; | 109 scoped_ptr<ServiceWorkerCacheStorageDispatcher> cache_storage_dispatcher_; |
| 110 | 110 |
| 111 // Not owned; embedded_context_ owns this. | 111 // Not owned; embedded_context_ owns this. |
| 112 EmbeddedWorkerContextClient* embedded_context_; | 112 EmbeddedWorkerContextClient* embedded_context_; |
| 113 | 113 |
| 114 // Not owned; this object is destroyed when proxy_ becomes invalid. | 114 // Not owned; this object is destroyed when proxy_ becomes invalid. |
| 115 blink::WebServiceWorkerContextProxy* proxy_; | 115 blink::WebServiceWorkerContextProxy* proxy_; |
| 116 | 116 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 131 std::map<int, base::TimeTicks> install_start_timings_; | 131 std::map<int, base::TimeTicks> install_start_timings_; |
| 132 std::map<int, base::TimeTicks> notification_click_start_timings_; | 132 std::map<int, base::TimeTicks> notification_click_start_timings_; |
| 133 std::map<int, base::TimeTicks> push_start_timings_; | 133 std::map<int, base::TimeTicks> push_start_timings_; |
| 134 | 134 |
| 135 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); | 135 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace content | 138 } // namespace content |
| 139 | 139 |
| 140 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ | 140 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ |
| OLD | NEW |