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

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

Issue 912753002: Stop Service Workers that execute JavaScript for too long. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix timeout value Created 5 years, 10 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 void OnOpenWindowResponse(int request_id, 138 void OnOpenWindowResponse(int request_id,
139 const ServiceWorkerClientInfo& client); 139 const ServiceWorkerClientInfo& client);
140 void OnOpenWindowError(int request_id); 140 void OnOpenWindowError(int request_id);
141 void OnFocusClientResponse(int request_id, 141 void OnFocusClientResponse(int request_id,
142 const ServiceWorkerClientInfo& client); 142 const ServiceWorkerClientInfo& client);
143 void OnDidSkipWaiting(int request_id); 143 void OnDidSkipWaiting(int request_id);
144 void OnDidClaimClients(int request_id); 144 void OnDidClaimClients(int request_id);
145 void OnClaimClientsError(int request_id, 145 void OnClaimClientsError(int request_id,
146 blink::WebServiceWorkerError::ErrorType error_type, 146 blink::WebServiceWorkerError::ErrorType error_type,
147 const base::string16& message); 147 const base::string16& message);
148 void OnPing();
148 149
149 scoped_ptr<ServiceWorkerCacheStorageDispatcher> cache_storage_dispatcher_; 150 scoped_ptr<ServiceWorkerCacheStorageDispatcher> cache_storage_dispatcher_;
150 151
151 // Not owned; embedded_context_ owns this. 152 // Not owned; embedded_context_ owns this.
152 EmbeddedWorkerContextClient* embedded_context_; 153 EmbeddedWorkerContextClient* embedded_context_;
153 154
154 // Not owned; this object is destroyed when proxy_ becomes invalid. 155 // Not owned; this object is destroyed when proxy_ becomes invalid.
155 blink::WebServiceWorkerContextProxy* proxy_; 156 blink::WebServiceWorkerContextProxy* proxy_;
156 157
157 // Used for incoming messages from the browser for which an outgoing response 158 // Used for incoming messages from the browser for which an outgoing response
(...skipping 19 matching lines...) Expand all
177 std::map<int, base::TimeTicks> install_start_timings_; 178 std::map<int, base::TimeTicks> install_start_timings_;
178 std::map<int, base::TimeTicks> notification_click_start_timings_; 179 std::map<int, base::TimeTicks> notification_click_start_timings_;
179 std::map<int, base::TimeTicks> push_start_timings_; 180 std::map<int, base::TimeTicks> push_start_timings_;
180 181
181 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); 182 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext);
182 }; 183 };
183 184
184 } // namespace content 185 } // namespace content
185 186
186 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ 187 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698