Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: content/renderer/service_worker/service_worker_script_context.h

Issue 944443003: Step two of optionally sending messages to/from message ports as base::Value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-c-message-as-values-take2
Patch Set: use auto where it makes sense Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 int request_id, 120 int request_id,
121 const std::string& notification_id, 121 const std::string& notification_id,
122 const PlatformNotificationData& notification_data); 122 const PlatformNotificationData& notification_data);
123 void OnPushEvent(int request_id, const std::string& data); 123 void OnPushEvent(int request_id, const std::string& data);
124 void OnGeofencingEvent(int request_id, 124 void OnGeofencingEvent(int request_id,
125 blink::WebGeofencingEventType event_type, 125 blink::WebGeofencingEventType event_type,
126 const std::string& region_id, 126 const std::string& region_id,
127 const blink::WebCircularGeofencingRegion& region); 127 const blink::WebCircularGeofencingRegion& region);
128 void OnCrossOriginConnectEvent(int request_id, 128 void OnCrossOriginConnectEvent(int request_id,
129 const NavigatorConnectClient& client); 129 const NavigatorConnectClient& client);
130 void OnPostMessage(const base::string16& message, 130 void OnPostMessage(
131 const std::vector<int>& sent_message_port_ids, 131 const base::string16& message,
132 const std::vector<int>& new_routing_ids); 132 const std::vector<TransferredMessagePort>& sent_message_ports,
133 const std::vector<int>& new_routing_ids);
133 void OnCrossOriginMessageToWorker( 134 void OnCrossOriginMessageToWorker(
134 const NavigatorConnectClient& client, 135 const NavigatorConnectClient& client,
135 const base::string16& message, 136 const base::string16& message,
136 const std::vector<int>& sent_message_port_ids, 137 const std::vector<TransferredMessagePort>& sent_message_ports,
137 const std::vector<int>& new_routing_ids); 138 const std::vector<int>& new_routing_ids);
138 void OnDidGetClientDocuments( 139 void OnDidGetClientDocuments(
139 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); 140 int request_id, const std::vector<ServiceWorkerClientInfo>& clients);
140 void OnOpenWindowResponse(int request_id, 141 void OnOpenWindowResponse(int request_id,
141 const ServiceWorkerClientInfo& client); 142 const ServiceWorkerClientInfo& client);
142 void OnOpenWindowError(int request_id); 143 void OnOpenWindowError(int request_id);
143 void OnFocusClientResponse(int request_id, 144 void OnFocusClientResponse(int request_id,
144 const ServiceWorkerClientInfo& client); 145 const ServiceWorkerClientInfo& client);
145 void OnDidSkipWaiting(int request_id); 146 void OnDidSkipWaiting(int request_id);
146 void OnDidClaimClients(int request_id); 147 void OnDidClaimClients(int request_id);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 std::map<int, base::TimeTicks> install_start_timings_; 181 std::map<int, base::TimeTicks> install_start_timings_;
181 std::map<int, base::TimeTicks> notification_click_start_timings_; 182 std::map<int, base::TimeTicks> notification_click_start_timings_;
182 std::map<int, base::TimeTicks> push_start_timings_; 183 std::map<int, base::TimeTicks> push_start_timings_;
183 184
184 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); 185 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext);
185 }; 186 };
186 187
187 } // namespace content 188 } // namespace content
188 189
189 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ 190 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/service_worker/service_worker_script_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698