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

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

Issue 1030103003: Report error messages to DevTools window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 void RemoveStreamingURLRequestJob( 271 void RemoveStreamingURLRequestJob(
272 const ServiceWorkerURLRequestJob* request_job); 272 const ServiceWorkerURLRequestJob* request_job);
273 273
274 // Adds and removes Listeners. 274 // Adds and removes Listeners.
275 void AddListener(Listener* listener); 275 void AddListener(Listener* listener);
276 void RemoveListener(Listener* listener); 276 void RemoveListener(Listener* listener);
277 277
278 ServiceWorkerScriptCacheMap* script_cache_map() { return &script_cache_map_; } 278 ServiceWorkerScriptCacheMap* script_cache_map() { return &script_cache_map_; }
279 EmbeddedWorkerInstance* embedded_worker() { return embedded_worker_.get(); } 279 EmbeddedWorkerInstance* embedded_worker() { return embedded_worker_.get(); }
280 280
281 // Report the registration failure to |listeners_|.
282 void ReportRegistrationFailure(ServiceWorkerStatusCode status,
falken 2015/03/26 03:56:29 Maybe this should just be renamed something like R
horo 2015/03/26 06:10:28 Done.
283 const std::string& status_message);
284
281 // Dooms this version to have REDUNDANT status and its resources deleted. If 285 // Dooms this version to have REDUNDANT status and its resources deleted. If
282 // the version is controlling a page, these changes will happen when the 286 // the version is controlling a page, these changes will happen when the
283 // version no longer controls any pages. 287 // version no longer controls any pages.
284 void Doom(); 288 void Doom();
285 bool is_doomed() const { return is_doomed_; } 289 bool is_doomed() const { return is_doomed_; }
286 290
287 bool skip_waiting() const { return skip_waiting_; } 291 bool skip_waiting() const { return skip_waiting_; }
288 292
289 void SetDevToolsAttached(bool attached); 293 void SetDevToolsAttached(bool attached);
290 294
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; 483 scoped_ptr<net::HttpResponseInfo> main_script_http_info_;
480 484
481 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 485 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
482 486
483 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 487 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
484 }; 488 };
485 489
486 } // namespace content 490 } // namespace content
487 491
488 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 492 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698