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

Side by Side Diff: extensions/browser/service_worker_manager.cc

Issue 1429753002: ServiceWorker: Remove dead code from ServiceWorkerContextWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix "include" dependency Created 5 years, 1 month 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
« no previous file with comments | « content/public/browser/service_worker_context.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "extensions/browser/service_worker_manager.h" 5 #include "extensions/browser/service_worker_manager.h"
6 6
7 #include "base/bind.h"
7 #include "content/public/browser/browser_context.h" 8 #include "content/public/browser/browser_context.h"
8 #include "content/public/browser/service_worker_context.h" 9 #include "content/public/browser/service_worker_context.h"
9 #include "content/public/browser/storage_partition.h" 10 #include "content/public/browser/storage_partition.h"
10 #include "extensions/browser/extension_registry.h" 11 #include "extensions/browser/extension_registry.h"
11 12
12 namespace extensions { 13 namespace extensions {
13 14
14 namespace { 15 namespace {
15 void EmptySuccessCallback(bool success) {} 16 void EmptySuccessCallback(bool success) {}
16 } 17 }
(...skipping 24 matching lines...) Expand all
41 // a) Keep track of extensions with registered service workers. 42 // a) Keep track of extensions with registered service workers.
42 // b) Add a callback to the (Un)SuspendServiceWorkersOnOrigin() method. 43 // b) Add a callback to the (Un)SuspendServiceWorkersOnOrigin() method.
43 // c) Check for any orphaned workers. 44 // c) Check for any orphaned workers.
44 content::BrowserContext::GetStoragePartitionForSite(browser_context_, 45 content::BrowserContext::GetStoragePartitionForSite(browser_context_,
45 extension->url()) 46 extension->url())
46 ->GetServiceWorkerContext() 47 ->GetServiceWorkerContext()
47 ->DeleteForOrigin(extension->url(), base::Bind(&EmptySuccessCallback)); 48 ->DeleteForOrigin(extension->url(), base::Bind(&EmptySuccessCallback));
48 } 49 }
49 50
50 } // namespace extensions 51 } // namespace extensions
OLDNEW
« no previous file with comments | « content/public/browser/service_worker_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698