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

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: 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #include "content/public/browser/browser_context.h" 55 #include "content/public/browser/browser_context.h"
56 #include "content/public/browser/browser_thread.h" 56 #include "content/public/browser/browser_thread.h"
57 #include "content/public/browser/storage_partition.h" 57 #include "content/public/browser/storage_partition.h"
58 #include "google_apis/google_api_keys.h" 58 #include "google_apis/google_api_keys.h"
59 #include "net/url_request/url_request_context_getter.h" 59 #include "net/url_request/url_request_context_getter.h"
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/prefetch/suggested_articles_obser ver.h"
65 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" 66 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h"
66 #include "chrome/browser/download/download_core_service.h" 67 #include "chrome/browser/download/download_core_service.h"
67 #include "chrome/browser/download/download_core_service_factory.h" 68 #include "chrome/browser/download/download_core_service_factory.h"
68 #include "chrome/browser/download/download_history.h" 69 #include "chrome/browser/download/download_history.h"
69 #include "chrome/browser/ntp_snippets/download_suggestions_provider.h" 70 #include "chrome/browser/ntp_snippets/download_suggestions_provider.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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 ntp_snippets::kForeignSessionsSuggestionsFeature)) { 402 ntp_snippets::kForeignSessionsSuggestionsFeature)) {
403 RegisterForeignSessionsProvider(sync_service, service, pref_service); 403 RegisterForeignSessionsProvider(sync_service, service, pref_service);
404 } 404 }
405 405
406 return service; 406 return service;
407 407
408 #else 408 #else
409 return nullptr; 409 return nullptr;
410 #endif // CONTENT_SUGGESTIONS_ENABLED 410 #endif // CONTENT_SUGGESTIONS_ENABLED
411 } 411 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698