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

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

Issue 548773002: [ServiceWorker] Don't pass OPTIONS request to the ServiceWorker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move include Created 6 years, 3 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_STORAGE_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void Disable(); 157 void Disable();
158 bool IsDisabled() const; 158 bool IsDisabled() const;
159 159
160 // |resources| must already be on the purgeable list. 160 // |resources| must already be on the purgeable list.
161 void PurgeResources(const ResourceList& resources); 161 void PurgeResources(const ResourceList& resources);
162 162
163 private: 163 private:
164 friend class ServiceWorkerResourceStorageTest; 164 friend class ServiceWorkerResourceStorageTest;
165 friend class ServiceWorkerControlleeRequestHandlerTest; 165 friend class ServiceWorkerControlleeRequestHandlerTest;
166 friend class ServiceWorkerContextRequestHandlerTest; 166 friend class ServiceWorkerContextRequestHandlerTest;
167 friend class ServiceWorkerRequestHandlerTest;
167 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, 168 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest,
168 DeleteRegistration_NoLiveVersion); 169 DeleteRegistration_NoLiveVersion);
169 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, 170 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest,
170 DeleteRegistration_WaitingVersion); 171 DeleteRegistration_WaitingVersion);
171 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, 172 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest,
172 DeleteRegistration_ActiveVersion); 173 DeleteRegistration_ActiveVersion);
173 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, 174 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest,
174 UpdateRegistration); 175 UpdateRegistration);
175 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageDiskTest, 176 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageDiskTest,
176 CleanupOnRestart); 177 CleanupOnRestart);
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 std::set<int64> pending_deletions_; 386 std::set<int64> pending_deletions_;
386 387
387 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; 388 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_;
388 389
389 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); 390 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage);
390 }; 391 };
391 392
392 } // namespace content 393 } // namespace content
393 394
394 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ 395 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_request_handler_unittest.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698