OLD | NEW |
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 const std::string& key, | 121 const std::string& key, |
122 const std::string& data, | 122 const std::string& data, |
123 const StatusCallback& callback); | 123 const StatusCallback& callback); |
124 void ClearRegistrationUserData(int64_t registration_id, | 124 void ClearRegistrationUserData(int64_t registration_id, |
125 const std::string& key, | 125 const std::string& key, |
126 const StatusCallback& callback); | 126 const StatusCallback& callback); |
127 void GetUserDataForAllRegistrations( | 127 void GetUserDataForAllRegistrations( |
128 const std::string& key, | 128 const std::string& key, |
129 const GetUserDataForAllRegistrationsCallback& callback); | 129 const GetUserDataForAllRegistrationsCallback& callback); |
130 | 130 |
| 131 // PlzNavigate: |
| 132 void RegisterBrowserProviderHost( |
| 133 scoped_ptr<ServiceWorkerProviderHost> provider_host); |
| 134 |
131 void StartServiceWorker(const GURL& pattern, const StatusCallback& callback); | 135 void StartServiceWorker(const GURL& pattern, const StatusCallback& callback); |
132 void UpdateRegistration(const GURL& pattern); | 136 void UpdateRegistration(const GURL& pattern); |
133 void SimulateSkipWaiting(int64_t version_id); | 137 void SimulateSkipWaiting(int64_t version_id); |
134 void SetForceUpdateOnPageLoad(int64_t registration_id, | 138 void SetForceUpdateOnPageLoad(int64_t registration_id, |
135 bool force_update_on_page_load); | 139 bool force_update_on_page_load); |
136 void AddObserver(ServiceWorkerContextObserver* observer); | 140 void AddObserver(ServiceWorkerContextObserver* observer); |
137 void RemoveObserver(ServiceWorkerContextObserver* observer); | 141 void RemoveObserver(ServiceWorkerContextObserver* observer); |
138 | 142 |
139 bool is_incognito() const { return is_incognito_; } | 143 bool is_incognito() const { return is_incognito_; } |
140 | 144 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 199 |
196 // The ResourceContext associated with this context. | 200 // The ResourceContext associated with this context. |
197 ResourceContext* resource_context_; | 201 ResourceContext* resource_context_; |
198 | 202 |
199 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); | 203 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); |
200 }; | 204 }; |
201 | 205 |
202 } // namespace content | 206 } // namespace content |
203 | 207 |
204 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 208 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
OLD | NEW |