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

Unified Diff: content/public/browser/background_fetch_client.h

Issue 2777063008: Connect BackgroundFetch to the OfflineItemCollection
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/background_fetch_client.h
diff --git a/content/public/browser/background_fetch_client.h b/content/public/browser/background_fetch_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..f85bc76dd16a09ebc6e46a5629ad0eb14fdbb2f6
--- /dev/null
+++ b/content/public/browser/background_fetch_client.h
@@ -0,0 +1,22 @@
+// 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.
+
+#ifndef CONTENT_PUBLIC_BROWSER_BACKGROUND_FETCH_CLIENT_H_
+#define CONTENT_PUBLIC_BROWSER_BACKGROUND_FETCH_CLIENT_H_
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+class BackgroundFetchDelegate;
+
+class CONTENT_EXPORT BackgroundFetchClient {
Peter Beverloo 2017/03/29 14:32:13 ++docs on this interface. Especially things like o
harkness 2017/03/30 12:42:36 Done.
+ public:
+ virtual void SetDelegate(BackgroundFetchDelegate* delegate) = 0;
+ virtual BackgroundFetchDelegate* GetDelegate() const = 0;
Peter Beverloo 2017/03/29 14:32:13 Why do we need GetDelegate()?
harkness 2017/03/30 12:42:36 I thought we were going to need one, but we don't.
+};
Peter Beverloo 2017/03/29 14:32:13 Virtual base classes need to have a virtual destru
harkness 2017/03/30 12:42:36 Done.
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_FETCH_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698