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