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

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

Issue 1162243003: BackgroundSync sync events need to be ExtendableEvents, content side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoid race condition in sync event dispatch Created 5 years, 6 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void DidHandleInstallEvent(int request_id, 63 void DidHandleInstallEvent(int request_id,
64 blink::WebServiceWorkerEventResult result); 64 blink::WebServiceWorkerEventResult result);
65 void DidHandleFetchEvent(int request_id, 65 void DidHandleFetchEvent(int request_id,
66 ServiceWorkerFetchEventResult result, 66 ServiceWorkerFetchEventResult result,
67 const ServiceWorkerResponse& response); 67 const ServiceWorkerResponse& response);
68 void DidHandleNotificationClickEvent( 68 void DidHandleNotificationClickEvent(
69 int request_id, 69 int request_id,
70 blink::WebServiceWorkerEventResult result); 70 blink::WebServiceWorkerEventResult result);
71 void DidHandlePushEvent(int request_id, 71 void DidHandlePushEvent(int request_id,
72 blink::WebServiceWorkerEventResult result); 72 blink::WebServiceWorkerEventResult result);
73 void DidHandleSyncEvent(int request_id); 73 void DidHandleSyncEvent(int request_id,
74 blink::WebServiceWorkerEventResult result);
74 void DidHandleCrossOriginConnectEvent(int request_id, bool accept_connection); 75 void DidHandleCrossOriginConnectEvent(int request_id, bool accept_connection);
75 void GetClients( 76 void GetClients(
76 const blink::WebServiceWorkerClientQueryOptions& options, 77 const blink::WebServiceWorkerClientQueryOptions& options,
77 blink::WebServiceWorkerClientsCallbacks* callbacks); 78 blink::WebServiceWorkerClientsCallbacks* callbacks);
78 void OpenWindow(const GURL& url, 79 void OpenWindow(const GURL& url,
79 blink::WebServiceWorkerClientCallbacks* callbacks); 80 blink::WebServiceWorkerClientCallbacks* callbacks);
80 void SetCachedMetadata(const GURL& url, const char* data, size_t size); 81 void SetCachedMetadata(const GURL& url, const char* data, size_t size);
81 void ClearCachedMetadata(const GURL& url); 82 void ClearCachedMetadata(const GURL& url);
82 void PostMessageToClient( 83 void PostMessageToClient(
83 const base::string16& uuid, 84 const base::string16& uuid,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 std::map<int, base::TimeTicks> install_start_timings_; 183 std::map<int, base::TimeTicks> install_start_timings_;
183 std::map<int, base::TimeTicks> notification_click_start_timings_; 184 std::map<int, base::TimeTicks> notification_click_start_timings_;
184 std::map<int, base::TimeTicks> push_start_timings_; 185 std::map<int, base::TimeTicks> push_start_timings_;
185 186
186 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); 187 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext);
187 }; 188 };
188 189
189 } // namespace content 190 } // namespace content
190 191
191 #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