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

Side by Side Diff: content/browser/background_fetch/background_fetch_context.cc

Issue 2678273003: Initial framework setup and skeleton for BackgroundFetchContext (Closed)
Patch Set: Created 3 years, 10 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/background_fetch/background_fetch_context.h"
6
7 #include "content/browser/service_worker/service_worker_context_wrapper.h"
8 #include "content/public/browser/browser_thread.h"
9
10 namespace content {
11
12 BackgroundFetchContext::BackgroundFetchContext(BrowserContext* browser_context)
13 : browser_context_(browser_context) {
14 DCHECK_CURRENTLY_ON(BrowserThread::UI);
15 }
16
17 BackgroundFetchContext::~BackgroundFetchContext() = default;
Peter Beverloo 2017/02/08 12:20:25 Please DCHECK_CURRENTLY_ON here too (shutdown thre
harkness 2017/02/08 16:30:42 Done.
18
19 void BackgroundFetchContext::Init(
20 const scoped_refptr<ServiceWorkerContextWrapper>& context) {
21 DCHECK_CURRENTLY_ON(BrowserThread::UI);
22
23 // TODO(harkness) Create the Download observer.
24 // TODO(harkness) Create the Data manager.
25 // TODO(harkness) Create the Batch manager.
26 // TODO(harkness) Set up monitoring of the service worker.
27 }
28
29 void BackgroundFetchContext::Shutdown() {
30 DCHECK_CURRENTLY_ON(BrowserThread::UI);
31
32 // TODO(harkness) Clean up all the things.
33 }
34
35 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698