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

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

Issue 970693003: ServiceWorker: plumbing for ClientQueryOptions (2/2, chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase build fix... 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 10 matching lines...) Expand all
21 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" 21 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h"
22 #include "third_party/WebKit/public/platform/WebServiceWorkerClientsClaimCallbac ks.h" 22 #include "third_party/WebKit/public/platform/WebServiceWorkerClientsClaimCallbac ks.h"
23 #include "third_party/WebKit/public/platform/WebServiceWorkerClientsInfo.h" 23 #include "third_party/WebKit/public/platform/WebServiceWorkerClientsInfo.h"
24 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" 24 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h"
25 #include "third_party/WebKit/public/platform/WebServiceWorkerEventResult.h" 25 #include "third_party/WebKit/public/platform/WebServiceWorkerEventResult.h"
26 #include "third_party/WebKit/public/platform/WebServiceWorkerSkipWaitingCallback s.h" 26 #include "third_party/WebKit/public/platform/WebServiceWorkerSkipWaitingCallback s.h"
27 27
28 namespace blink { 28 namespace blink {
29 struct WebCircularGeofencingRegion; 29 struct WebCircularGeofencingRegion;
30 struct WebCrossOriginServiceWorkerClient; 30 struct WebCrossOriginServiceWorkerClient;
31 struct WebServiceWorkerClientQueryOptions;
31 class WebServiceWorkerContextProxy; 32 class WebServiceWorkerContextProxy;
32 } 33 }
33 34
34 namespace IPC { 35 namespace IPC {
35 class Message; 36 class Message;
36 } 37 }
37 38
38 namespace content { 39 namespace content {
39 40
40 class EmbeddedWorkerContextClient; 41 class EmbeddedWorkerContextClient;
(...skipping 24 matching lines...) Expand all
65 void DidHandleFetchEvent(int request_id, 66 void DidHandleFetchEvent(int request_id,
66 ServiceWorkerFetchEventResult result, 67 ServiceWorkerFetchEventResult result,
67 const ServiceWorkerResponse& response); 68 const ServiceWorkerResponse& response);
68 void DidHandleNotificationClickEvent( 69 void DidHandleNotificationClickEvent(
69 int request_id, 70 int request_id,
70 blink::WebServiceWorkerEventResult result); 71 blink::WebServiceWorkerEventResult result);
71 void DidHandlePushEvent(int request_id, 72 void DidHandlePushEvent(int request_id,
72 blink::WebServiceWorkerEventResult result); 73 blink::WebServiceWorkerEventResult result);
73 void DidHandleSyncEvent(int request_id); 74 void DidHandleSyncEvent(int request_id);
74 void DidHandleCrossOriginConnectEvent(int request_id, bool accept_connection); 75 void DidHandleCrossOriginConnectEvent(int request_id, bool accept_connection);
75 void GetClientDocuments( 76 void GetClients(
77 const blink::WebServiceWorkerClientQueryOptions& options,
76 blink::WebServiceWorkerClientsCallbacks* callbacks); 78 blink::WebServiceWorkerClientsCallbacks* callbacks);
77 void OpenWindow(const GURL& url, 79 void OpenWindow(const GURL& url,
78 blink::WebServiceWorkerClientCallbacks* callbacks); 80 blink::WebServiceWorkerClientCallbacks* callbacks);
79 void SetCachedMetadata(const GURL& url, const char* data, size_t size); 81 void SetCachedMetadata(const GURL& url, const char* data, size_t size);
80 void ClearCachedMetadata(const GURL& url); 82 void ClearCachedMetadata(const GURL& url);
81 void PostMessageToDocument( 83 void PostMessageToDocument(
82 int client_id, 84 int client_id,
83 const base::string16& message, 85 const base::string16& message,
84 scoped_ptr<blink::WebMessagePortChannelArray> channels); 86 scoped_ptr<blink::WebMessagePortChannelArray> channels);
85 void PostCrossOriginMessageToClient( 87 void PostCrossOriginMessageToClient(
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const NavigatorConnectClient& client); 131 const NavigatorConnectClient& client);
130 void OnPostMessage( 132 void OnPostMessage(
131 const base::string16& message, 133 const base::string16& message,
132 const std::vector<TransferredMessagePort>& sent_message_ports, 134 const std::vector<TransferredMessagePort>& sent_message_ports,
133 const std::vector<int>& new_routing_ids); 135 const std::vector<int>& new_routing_ids);
134 void OnCrossOriginMessageToWorker( 136 void OnCrossOriginMessageToWorker(
135 const NavigatorConnectClient& client, 137 const NavigatorConnectClient& client,
136 const base::string16& message, 138 const base::string16& message,
137 const std::vector<TransferredMessagePort>& sent_message_ports, 139 const std::vector<TransferredMessagePort>& sent_message_ports,
138 const std::vector<int>& new_routing_ids); 140 const std::vector<int>& new_routing_ids);
139 void OnDidGetClientDocuments( 141 void OnDidGetClients(
140 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); 142 int request_id, const std::vector<ServiceWorkerClientInfo>& clients);
141 void OnOpenWindowResponse(int request_id, 143 void OnOpenWindowResponse(int request_id,
142 const ServiceWorkerClientInfo& client); 144 const ServiceWorkerClientInfo& client);
143 void OnOpenWindowError(int request_id); 145 void OnOpenWindowError(int request_id);
144 void OnFocusClientResponse(int request_id, 146 void OnFocusClientResponse(int request_id,
145 const ServiceWorkerClientInfo& client); 147 const ServiceWorkerClientInfo& client);
146 void OnDidSkipWaiting(int request_id); 148 void OnDidSkipWaiting(int request_id);
147 void OnDidClaimClients(int request_id); 149 void OnDidClaimClients(int request_id);
148 void OnClaimClientsError(int request_id, 150 void OnClaimClientsError(int request_id,
149 blink::WebServiceWorkerError::ErrorType error_type, 151 blink::WebServiceWorkerError::ErrorType error_type,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 std::map<int, base::TimeTicks> install_start_timings_; 183 std::map<int, base::TimeTicks> install_start_timings_;
182 std::map<int, base::TimeTicks> notification_click_start_timings_; 184 std::map<int, base::TimeTicks> notification_click_start_timings_;
183 std::map<int, base::TimeTicks> push_start_timings_; 185 std::map<int, base::TimeTicks> push_start_timings_;
184 186
185 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); 187 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext);
186 }; 188 };
187 189
188 } // namespace content 190 } // namespace content
189 191
190 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ 192 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698