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

Unified Diff: components/offline_pages/core/prefetch/prefetch_service_impl.h

Issue 2811813002: [Offline Pages] Set up the initial prefetching service. (Closed)
Patch Set: fix compile >:-( Created 3 years, 8 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: components/offline_pages/core/prefetch/prefetch_service_impl.h
diff --git a/components/offline_pages/core/prefetch/prefetch_service_impl.h b/components/offline_pages/core/prefetch/prefetch_service_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..7d7b72e18874040d5a55cb3b6213ebc48c1adb9d
--- /dev/null
+++ b/components/offline_pages/core/prefetch/prefetch_service_impl.h
@@ -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.
+
+#ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_IMPL_H_
+#define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_IMPL_H_
+
+#include <vector>
+
+#include "components/offline_pages/core/prefetch/prefetch_service.h"
+#include "url/gurl.h"
+
+namespace offline_pages {
+
+class PrefetchServiceImpl : public PrefetchService {
+ public:
+ PrefetchServiceImpl();
+ ~PrefetchServiceImpl() override;
+
+ // PrefetchService implementation:
+ void AddCandidatePrefetchURLs(
+ const std::vector<PrefetchURL>& suggested_urls) override;
+ void RemoveAllUnprocessedPrefetchURLs(const std::string& name_space) override;
+ void RemovePrefetchURLsByClientId(const ClientId& client_id) override;
+
+ // KeyedService implementation:
+ void Shutdown() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PrefetchServiceImpl);
+};
+
+} // namespace offline_pages
+
+#endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698