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

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

Issue 2925423002: Move all calls on ServiceWorkerContextCoreObserver to ServiceWorkerContextCore. (Closed)
Patch Set: No need to pass observer_list Created 3 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_context_core.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 storage::QuotaManagerProxy* quota_manager_proxy, 119 storage::QuotaManagerProxy* quota_manager_proxy,
120 storage::SpecialStoragePolicy* special_storage_policy, 120 storage::SpecialStoragePolicy* special_storage_policy,
121 base::ObserverListThreadSafe<ServiceWorkerContextCoreObserver>* 121 base::ObserverListThreadSafe<ServiceWorkerContextCoreObserver>*
122 observer_list, 122 observer_list,
123 ServiceWorkerContextWrapper* wrapper); 123 ServiceWorkerContextWrapper* wrapper);
124 ServiceWorkerContextCore( 124 ServiceWorkerContextCore(
125 ServiceWorkerContextCore* old_context, 125 ServiceWorkerContextCore* old_context,
126 ServiceWorkerContextWrapper* wrapper); 126 ServiceWorkerContextWrapper* wrapper);
127 ~ServiceWorkerContextCore() override; 127 ~ServiceWorkerContextCore() override;
128 128
129 void OnStorageWiped();
130
129 // ServiceWorkerVersion::Listener overrides. 131 // ServiceWorkerVersion::Listener overrides.
130 void OnRunningStateChanged(ServiceWorkerVersion* version) override; 132 void OnRunningStateChanged(ServiceWorkerVersion* version) override;
131 void OnVersionStateChanged(ServiceWorkerVersion* version) override; 133 void OnVersionStateChanged(ServiceWorkerVersion* version) override;
132 void OnDevToolsRoutingIdChanged(ServiceWorkerVersion* version) override; 134 void OnDevToolsRoutingIdChanged(ServiceWorkerVersion* version) override;
133 void OnMainScriptHttpResponseInfoSet(ServiceWorkerVersion* version) override; 135 void OnMainScriptHttpResponseInfoSet(ServiceWorkerVersion* version) override;
134 void OnErrorReported(ServiceWorkerVersion* version, 136 void OnErrorReported(ServiceWorkerVersion* version,
135 const base::string16& error_message, 137 const base::string16& error_message,
136 int line_number, 138 int line_number,
137 int column_number, 139 int column_number,
138 const GURL& source_url) override; 140 const GURL& source_url) override;
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 scoped_refptr<base::ObserverListThreadSafe<ServiceWorkerContextCoreObserver>> 390 scoped_refptr<base::ObserverListThreadSafe<ServiceWorkerContextCoreObserver>>
389 observer_list_; 391 observer_list_;
390 base::WeakPtrFactory<ServiceWorkerContextCore> weak_factory_; 392 base::WeakPtrFactory<ServiceWorkerContextCore> weak_factory_;
391 393
392 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore); 394 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore);
393 }; 395 };
394 396
395 } // namespace content 397 } // namespace content
396 398
397 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ 399 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_context_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698