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

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

Issue 2943583002: [extension SW] Support lazy events from extension service workers. (Closed)
Patch Set: Address comments from falken@ 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
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_WRAPPER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 const CountExternalRequestsCallback& callback) override; 120 const CountExternalRequestsCallback& callback) override;
121 void StopAllServiceWorkersForOrigin(const GURL& origin) override; 121 void StopAllServiceWorkersForOrigin(const GURL& origin) override;
122 void ClearAllServiceWorkersForTest(const base::Closure& callback) override; 122 void ClearAllServiceWorkersForTest(const base::Closure& callback) override;
123 bool StartingExternalRequest(int64_t service_worker_version_id, 123 bool StartingExternalRequest(int64_t service_worker_version_id,
124 const std::string& request_uuid) override; 124 const std::string& request_uuid) override;
125 bool FinishedExternalRequest(int64_t service_worker_version_id, 125 bool FinishedExternalRequest(int64_t service_worker_version_id,
126 const std::string& request_uuid) override; 126 const std::string& request_uuid) override;
127 void StartServiceWorkerForNavigationHint( 127 void StartServiceWorkerForNavigationHint(
128 const GURL& document_url, 128 const GURL& document_url,
129 const StartServiceWorkerForNavigationHintCallback& callback) override; 129 const StartServiceWorkerForNavigationHintCallback& callback) override;
130 void StartActiveWorkerForPattern(const GURL& pattern,
131 StartActiveWorkerCallback info_callback,
132 base::OnceClosure failure_callback) override;
130 133
131 // These methods must only be called from the IO thread. 134 // These methods must only be called from the IO thread.
132 ServiceWorkerRegistration* GetLiveRegistration(int64_t registration_id); 135 ServiceWorkerRegistration* GetLiveRegistration(int64_t registration_id);
133 ServiceWorkerVersion* GetLiveVersion(int64_t version_id); 136 ServiceWorkerVersion* GetLiveVersion(int64_t version_id);
134 std::vector<ServiceWorkerRegistrationInfo> GetAllLiveRegistrationInfo(); 137 std::vector<ServiceWorkerRegistrationInfo> GetAllLiveRegistrationInfo();
135 std::vector<ServiceWorkerVersionInfo> GetAllLiveVersionInfo(); 138 std::vector<ServiceWorkerVersionInfo> GetAllLiveVersionInfo();
136 139
137 // Must be called from the IO thread. 140 // Must be called from the IO thread.
138 void HasMainFrameProviderHost(const GURL& origin, 141 void HasMainFrameProviderHost(const GURL& origin,
139 const BoolCallback& callback) const; 142 const BoolCallback& callback) const;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 342
340 // The ResourceContext associated with this context. 343 // The ResourceContext associated with this context.
341 ResourceContext* resource_context_; 344 ResourceContext* resource_context_;
342 345
343 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); 346 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper);
344 }; 347 };
345 348
346 } // namespace content 349 } // namespace content
347 350
348 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 351 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698