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

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

Issue 1799413002: ServiceWorker: Release a reference when it fails to dispatch ExtendableMessageEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_dispatch_extendable_message_event
Patch Set: Created 4 years, 9 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 friend class ServiceWorkerControlleeRequestHandlerTest; 230 friend class ServiceWorkerControlleeRequestHandlerTest;
231 friend class ServiceWorkerContextRequestHandlerTest; 231 friend class ServiceWorkerContextRequestHandlerTest;
232 friend class ServiceWorkerReadFromCacheJobTest; 232 friend class ServiceWorkerReadFromCacheJobTest;
233 friend class ServiceWorkerRequestHandlerTest; 233 friend class ServiceWorkerRequestHandlerTest;
234 friend class ServiceWorkerURLRequestJobTest; 234 friend class ServiceWorkerURLRequestJobTest;
235 friend class ServiceWorkerVersionBrowserTest; 235 friend class ServiceWorkerVersionBrowserTest;
236 friend class ServiceWorkerVersionTest; 236 friend class ServiceWorkerVersionTest;
237 friend class ServiceWorkerWriteToCacheJobTest; 237 friend class ServiceWorkerWriteToCacheJobTest;
238 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTest, 238 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTest,
239 CleanupOnRendererCrash); 239 CleanupOnRendererCrash);
240 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTest,
241 DispatchExtendableMessageEvent);
242 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTest,
243 DispatchExtendableMessageEvent_Fail);
240 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, 244 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest,
241 DeleteRegistration_NoLiveVersion); 245 DeleteRegistration_NoLiveVersion);
242 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, 246 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest,
243 DeleteRegistration_WaitingVersion); 247 DeleteRegistration_WaitingVersion);
244 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, 248 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest,
245 DeleteRegistration_ActiveVersion); 249 DeleteRegistration_ActiveVersion);
246 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, 250 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest,
247 UpdateRegistration); 251 UpdateRegistration);
248 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageDiskTest, 252 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageDiskTest,
249 CleanupOnRestart); 253 CleanupOnRestart);
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 std::set<int64_t> pending_deletions_; 546 std::set<int64_t> pending_deletions_;
543 547
544 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; 548 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_;
545 549
546 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); 550 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage);
547 }; 551 };
548 552
549 } // namespace content 553 } // namespace content
550 554
551 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ 555 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698