Index: content/browser/background_fetch/background_fetch_context.cc |
diff --git a/content/browser/background_fetch/background_fetch_context.cc b/content/browser/background_fetch/background_fetch_context.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..acae0cfd75dc6bb514f362356568a238e2be7c93 |
--- /dev/null |
+++ b/content/browser/background_fetch/background_fetch_context.cc |
@@ -0,0 +1,35 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/browser/background_fetch/background_fetch_context.h" |
+ |
+#include "content/browser/service_worker/service_worker_context_wrapper.h" |
+#include "content/public/browser/browser_thread.h" |
+ |
+namespace content { |
+ |
+BackgroundFetchContext::BackgroundFetchContext(BrowserContext* browser_context) |
+ : browser_context_(browser_context) { |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
+} |
+ |
+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.
|
+ |
+void BackgroundFetchContext::Init( |
+ const scoped_refptr<ServiceWorkerContextWrapper>& context) { |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
+ |
+ // TODO(harkness) Create the Download observer. |
+ // TODO(harkness) Create the Data manager. |
+ // TODO(harkness) Create the Batch manager. |
+ // TODO(harkness) Set up monitoring of the service worker. |
+} |
+ |
+void BackgroundFetchContext::Shutdown() { |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
+ |
+ // TODO(harkness) Clean up all the things. |
+} |
+ |
+} // namespace content |