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

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

Issue 1294243004: PlzNavigate: Make ServiceWorker work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 2 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 <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 const std::string& key, 128 const std::string& key,
129 const GetUserDataForAllRegistrationsCallback& callback); 129 const GetUserDataForAllRegistrationsCallback& callback);
130 130
131 void StartServiceWorker(const GURL& pattern, const StatusCallback& callback); 131 void StartServiceWorker(const GURL& pattern, const StatusCallback& callback);
132 void UpdateRegistration(const GURL& pattern); 132 void UpdateRegistration(const GURL& pattern);
133 void SetForceUpdateOnPageLoad(int64_t registration_id, 133 void SetForceUpdateOnPageLoad(int64_t registration_id,
134 bool force_update_on_page_load); 134 bool force_update_on_page_load);
135 void AddObserver(ServiceWorkerContextObserver* observer); 135 void AddObserver(ServiceWorkerContextObserver* observer);
136 void RemoveObserver(ServiceWorkerContextObserver* observer); 136 void RemoveObserver(ServiceWorkerContextObserver* observer);
137 137
138 // PlzNavigate
139 void RemoveNavigationProviderHost(int provider_id);
140
138 bool is_incognito() const { return is_incognito_; } 141 bool is_incognito() const { return is_incognito_; }
139 142
140 private: 143 private:
141 friend class BackgroundSyncManagerTest; 144 friend class BackgroundSyncManagerTest;
142 friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>; 145 friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>;
143 friend class EmbeddedWorkerTestHelper; 146 friend class EmbeddedWorkerTestHelper;
144 friend class EmbeddedWorkerBrowserTest; 147 friend class EmbeddedWorkerBrowserTest;
145 friend class ServiceWorkerDispatcherHost; 148 friend class ServiceWorkerDispatcherHost;
146 friend class ServiceWorkerInternalsUI; 149 friend class ServiceWorkerInternalsUI;
147 friend class ServiceWorkerProcessManager; 150 friend class ServiceWorkerProcessManager;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 197
195 // The ResourceContext associated with this context. 198 // The ResourceContext associated with this context.
196 ResourceContext* resource_context_; 199 ResourceContext* resource_context_;
197 200
198 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); 201 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper);
199 }; 202 };
200 203
201 } // namespace content 204 } // namespace content
202 205
203 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 206 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698