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

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

Issue 1149383004: [3/5 chromium] Shows the clients which are controlled by ServiceWorker in DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated dcheng's comment 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 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_CONTEXT_CORE_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 const base::string16& error_message, 121 const base::string16& error_message,
122 int line_number, 122 int line_number,
123 int column_number, 123 int column_number,
124 const GURL& source_url) override; 124 const GURL& source_url) override;
125 void OnReportConsoleMessage(ServiceWorkerVersion* version, 125 void OnReportConsoleMessage(ServiceWorkerVersion* version,
126 int source_identifier, 126 int source_identifier,
127 int message_level, 127 int message_level,
128 const base::string16& message, 128 const base::string16& message,
129 int line_number, 129 int line_number,
130 const GURL& source_url) override; 130 const GURL& source_url) override;
131 void OnControlleeAdded(ServiceWorkerVersion* version,
132 ServiceWorkerProviderHost* provider_host) override;
133 void OnControlleeRemoved(ServiceWorkerVersion* version,
134 ServiceWorkerProviderHost* provider_host) override;
131 135
132 ServiceWorkerContextWrapper* wrapper() const { return wrapper_; } 136 ServiceWorkerContextWrapper* wrapper() const { return wrapper_; }
133 ServiceWorkerStorage* storage() { return storage_.get(); } 137 ServiceWorkerStorage* storage() { return storage_.get(); }
134 ServiceWorkerProcessManager* process_manager(); 138 ServiceWorkerProcessManager* process_manager();
135 EmbeddedWorkerRegistry* embedded_worker_registry() { 139 EmbeddedWorkerRegistry* embedded_worker_registry() {
136 return embedded_worker_registry_.get(); 140 return embedded_worker_registry_.get();
137 } 141 }
138 ServiceWorkerJobCoordinator* job_coordinator() { 142 ServiceWorkerJobCoordinator* job_coordinator() {
139 return job_coordinator_.get(); 143 return job_coordinator_.get();
140 } 144 }
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 scoped_refptr<base::ObserverListThreadSafe<ServiceWorkerContextObserver>> 259 scoped_refptr<base::ObserverListThreadSafe<ServiceWorkerContextObserver>>
256 observer_list_; 260 observer_list_;
257 base::WeakPtrFactory<ServiceWorkerContextCore> weak_factory_; 261 base::WeakPtrFactory<ServiceWorkerContextCore> weak_factory_;
258 262
259 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore); 263 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore);
260 }; 264 };
261 265
262 } // namespace content 266 } // namespace content
263 267
264 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ 268 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698