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

Side by Side Diff: content/browser/service_worker/service_worker_version.h

Issue 567903002: ServiceWorker: Change worker script fetch error code(2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 ServiceWorkerScriptCacheMap* script_cache_map() { return &script_cache_map_; } 213 ServiceWorkerScriptCacheMap* script_cache_map() { return &script_cache_map_; }
214 EmbeddedWorkerInstance* embedded_worker() { return embedded_worker_.get(); } 214 EmbeddedWorkerInstance* embedded_worker() { return embedded_worker_.get(); }
215 215
216 // Dooms this version to have REDUNDANT status and its resources deleted. If 216 // Dooms this version to have REDUNDANT status and its resources deleted. If
217 // the version is controlling a page, these changes will happen when the 217 // the version is controlling a page, these changes will happen when the
218 // version no longer controls any pages. 218 // version no longer controls any pages.
219 void Doom(); 219 void Doom();
220 bool is_doomed() const { return is_doomed_; } 220 bool is_doomed() const { return is_doomed_; }
221 221
222 // Notifies start callbacks that an URL request error occurred.
223 void NotifyStartWorkerURLRequestError(ServiceWorkerStatusCode status);
michaeln 2014/09/13 01:21:34 The 'start callbacks' are already being called in
xiang 2014/09/16 06:24:31 Done.
224
222 private: 225 private:
223 friend class base::RefCounted<ServiceWorkerVersion>; 226 friend class base::RefCounted<ServiceWorkerVersion>;
224 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, 227 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
225 ActivateWaitingVersion); 228 ActivateWaitingVersion);
226 typedef ServiceWorkerVersion self; 229 typedef ServiceWorkerVersion self;
227 typedef std::map<ServiceWorkerProviderHost*, int> ControlleeMap; 230 typedef std::map<ServiceWorkerProviderHost*, int> ControlleeMap;
228 typedef IDMap<ServiceWorkerProviderHost> ControlleeByIDMap; 231 typedef IDMap<ServiceWorkerProviderHost> ControlleeByIDMap;
229 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ScheduleStopWorker); 232 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ScheduleStopWorker);
230 233
231 virtual ~ServiceWorkerVersion(); 234 virtual ~ServiceWorkerVersion();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 bool is_doomed_; 299 bool is_doomed_;
297 300
298 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 301 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
299 302
300 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 303 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
301 }; 304 };
302 305
303 } // namespace content 306 } // namespace content
304 307
305 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 308 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698