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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 const std::string& key, | 117 const std::string& key, |
118 const GetUserDataForAllRegistrationsCallback& callback); | 118 const GetUserDataForAllRegistrationsCallback& callback); |
119 | 119 |
120 // DeleteForOrigin with completion callback. Does not exit early, and returns | 120 // DeleteForOrigin with completion callback. Does not exit early, and returns |
121 // false if one or more of the deletions fail. | 121 // false if one or more of the deletions fail. |
122 virtual void DeleteForOrigin(const GURL& origin, const ResultCallback& done); | 122 virtual void DeleteForOrigin(const GURL& origin, const ResultCallback& done); |
123 | 123 |
124 void StartServiceWorker(const GURL& pattern, const StatusCallback& callback); | 124 void StartServiceWorker(const GURL& pattern, const StatusCallback& callback); |
125 void UpdateRegistration(const GURL& pattern); | 125 void UpdateRegistration(const GURL& pattern); |
126 void SimulateSkipWaiting(int64_t version_id); | 126 void SimulateSkipWaiting(int64_t version_id); |
| 127 void FocusClient(const std::string& client_uuid); |
127 void AddObserver(ServiceWorkerContextObserver* observer); | 128 void AddObserver(ServiceWorkerContextObserver* observer); |
128 void RemoveObserver(ServiceWorkerContextObserver* observer); | 129 void RemoveObserver(ServiceWorkerContextObserver* observer); |
129 | 130 |
130 bool is_incognito() const { return is_incognito_; } | 131 bool is_incognito() const { return is_incognito_; } |
131 | 132 |
132 private: | 133 private: |
133 friend class BackgroundSyncManagerTest; | 134 friend class BackgroundSyncManagerTest; |
134 friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>; | 135 friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>; |
135 friend class EmbeddedWorkerTestHelper; | 136 friend class EmbeddedWorkerTestHelper; |
136 friend class EmbeddedWorkerBrowserTest; | 137 friend class EmbeddedWorkerBrowserTest; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // Initialized in Init(); true if the user data directory is empty. | 182 // Initialized in Init(); true if the user data directory is empty. |
182 bool is_incognito_; | 183 bool is_incognito_; |
183 | 184 |
184 // Raw pointer to the StoragePartitionImpl owning |this|. | 185 // Raw pointer to the StoragePartitionImpl owning |this|. |
185 StoragePartitionImpl* storage_partition_; | 186 StoragePartitionImpl* storage_partition_; |
186 }; | 187 }; |
187 | 188 |
188 } // namespace content | 189 } // namespace content |
189 | 190 |
190 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 191 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
OLD | NEW |