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

Side by Side Diff: content/browser/storage_partition_impl.cc

Issue 2973233002: [Background Fetch] Cleanup/fix thread safety (Closed)
Patch Set: Created 3 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/browser/storage_partition_impl.h" 5 #include "content/browser/storage_partition_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 410
411 if (GetServiceWorkerContext()) 411 if (GetServiceWorkerContext())
412 GetServiceWorkerContext()->Shutdown(); 412 GetServiceWorkerContext()->Shutdown();
413 413
414 if (GetCacheStorageContext()) 414 if (GetCacheStorageContext())
415 GetCacheStorageContext()->Shutdown(); 415 GetCacheStorageContext()->Shutdown();
416 416
417 if (GetPlatformNotificationContext()) 417 if (GetPlatformNotificationContext())
418 GetPlatformNotificationContext()->Shutdown(); 418 GetPlatformNotificationContext()->Shutdown();
419 419
420 if (GetBackgroundFetchContext())
421 GetBackgroundFetchContext()->Shutdown();
422
423 if (GetBackgroundSyncContext()) 420 if (GetBackgroundSyncContext())
424 GetBackgroundSyncContext()->Shutdown(); 421 GetBackgroundSyncContext()->Shutdown();
425 422
426 if (GetPaymentAppContext()) 423 if (GetPaymentAppContext())
427 GetPaymentAppContext()->Shutdown(); 424 GetPaymentAppContext()->Shutdown();
428 } 425 }
429 426
430 // static 427 // static
431 std::unique_ptr<StoragePartitionImpl> StoragePartitionImpl::Create( 428 std::unique_ptr<StoragePartitionImpl> StoragePartitionImpl::Create(
432 BrowserContext* context, 429 BrowserContext* context,
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 media_url_request_context_ = media_url_request_context; 987 media_url_request_context_ = media_url_request_context;
991 } 988 }
992 989
993 void StoragePartitionImpl::GetQuotaSettings( 990 void StoragePartitionImpl::GetQuotaSettings(
994 storage::OptionalQuotaSettingsCallback callback) { 991 storage::OptionalQuotaSettingsCallback callback) {
995 GetContentClient()->browser()->GetQuotaSettings(browser_context_, this, 992 GetContentClient()->browser()->GetQuotaSettings(browser_context_, this,
996 std::move(callback)); 993 std::move(callback));
997 } 994 }
998 995
999 } // namespace content 996 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698