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

Side by Side Diff: chrome/browser/ntp_snippets/content_suggestions_service_factory.cc

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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ntp_snippets/content_suggestions_service_factory.h" 5 #include "chrome/browser/ntp_snippets/content_suggestions_service_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/feature_list.h" 9 #include "base/feature_list.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 #if defined(OS_ANDROID) 61 #if defined(OS_ANDROID)
62 #include "chrome/browser/android/chrome_feature_list.h" 62 #include "chrome/browser/android/chrome_feature_list.h"
63 #include "chrome/browser/android/ntp/ntp_snippets_launcher.h" 63 #include "chrome/browser/android/ntp/ntp_snippets_launcher.h"
64 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" 64 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h"
65 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" 65 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h"
66 #include "chrome/browser/download/download_core_service.h" 66 #include "chrome/browser/download/download_core_service.h"
67 #include "chrome/browser/download/download_core_service_factory.h" 67 #include "chrome/browser/download/download_core_service_factory.h"
68 #include "chrome/browser/download/download_history.h" 68 #include "chrome/browser/download/download_history.h"
69 #include "chrome/browser/ntp_snippets/download_suggestions_provider.h" 69 #include "chrome/browser/ntp_snippets/download_suggestions_provider.h"
70 #include "chrome/browser/offline_pages/prefetch/suggested_articles_observer.h"
70 #include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider. h" 71 #include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider. h"
71 #include "components/ntp_snippets/physical_web_pages/physical_web_page_suggestio ns_provider.h" 72 #include "components/ntp_snippets/physical_web_pages/physical_web_page_suggestio ns_provider.h"
72 #include "components/offline_pages/content/suggested_articles_observer.h"
73 #include "components/offline_pages/core/background/request_coordinator.h" 73 #include "components/offline_pages/core/background/request_coordinator.h"
74 #include "components/offline_pages/core/offline_page_feature.h" 74 #include "components/offline_pages/core/offline_page_feature.h"
75 #include "components/offline_pages/core/offline_page_model.h" 75 #include "components/offline_pages/core/offline_page_model.h"
76 #include "components/offline_pages/core/recent_tabs/recent_tabs_ui_adapter_deleg ate.h" 76 #include "components/offline_pages/core/recent_tabs/recent_tabs_ui_adapter_deleg ate.h"
77 #include "components/physical_web/data_source/physical_web_data_source.h" 77 #include "components/physical_web/data_source/physical_web_data_source.h"
78 78
79 using content::DownloadManager; 79 using content::DownloadManager;
80 using ntp_snippets::PhysicalWebPageSuggestionsProvider; 80 using ntp_snippets::PhysicalWebPageSuggestionsProvider;
81 using ntp_snippets::RecentTabSuggestionsProvider; 81 using ntp_snippets::RecentTabSuggestionsProvider;
82 using offline_pages::OfflinePageModel; 82 using offline_pages::OfflinePageModel;
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 ProfileSyncServiceFactory::GetSyncServiceForBrowserContext(profile); 399 ProfileSyncServiceFactory::GetSyncServiceForBrowserContext(profile);
400 RegisterForeignSessionsProvider(sync_service, service, pref_service); 400 RegisterForeignSessionsProvider(sync_service, service, pref_service);
401 } 401 }
402 402
403 return service; 403 return service;
404 404
405 #else 405 #else
406 return nullptr; 406 return nullptr;
407 #endif // CONTENT_SUGGESTIONS_ENABLED 407 #endif // CONTENT_SUGGESTIONS_ENABLED
408 } 408 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698