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

Unified Diff: chrome/browser/offline_pages/prefetch/prefetch_service_factory.h

Issue 2864293003: [Offline Pages] Add a GCMAppHandler for offline page prefetch. (Closed)
Patch Set: Refactor to remove GCM dependency. Created 3 years, 7 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: chrome/browser/offline_pages/prefetch/prefetch_service_factory.h
diff --git a/components/offline_pages/content/prefetch_service_factory.h b/chrome/browser/offline_pages/prefetch/prefetch_service_factory.h
similarity index 80%
rename from components/offline_pages/content/prefetch_service_factory.h
rename to chrome/browser/offline_pages/prefetch/prefetch_service_factory.h
index c7f4fb16696cc9fc71368d0547c385f894e01bcc..ea620ccbb1d573302820baa764d2813cc9ca4f91 100644
--- a/components/offline_pages/content/prefetch_service_factory.h
+++ b/chrome/browser/offline_pages/prefetch/prefetch_service_factory.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_OFFLINE_PAGES_CONTENT_PREFETCH_SERVICE_FACTORY_H_
-#define COMPONENTS_OFFLINE_PAGES_CONTENT_PREFETCH_SERVICE_FACTORY_H_
+#ifndef CHROME_BROWSER_OFFLINE_PAGES_PREFETCH_PREFETCH_SERVICE_FACTORY_H_
+#define CHROME_BROWSER_OFFLINE_PAGES_PREFETCH_PREFETCH_SERVICE_FACTORY_H_
#include "base/macros.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
@@ -26,6 +26,8 @@ class PrefetchServiceFactory : public BrowserContextKeyedServiceFactory {
static PrefetchService* GetForBrowserContext(
content::BrowserContext* context);
+ bool ServiceIsCreatedWithBrowserContext() const override;
+
private:
friend struct base::DefaultSingletonTraits<PrefetchServiceFactory>;
@@ -40,4 +42,4 @@ class PrefetchServiceFactory : public BrowserContextKeyedServiceFactory {
} // namespace offline_pages
-#endif // COMPONENTS_OFFLINE_PAGES_CONTENT_PREFETCH_SERVICE_FACTORY_H_
+#endif // CHROME_BROWSER_OFFLINE_PAGES_PREFETCH_PREFETCH_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698