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

Side by Side Diff: chrome/browser/android/ntp/popular_sites.h

Issue 2570783003: [Popular Sites] Split PopularSites interface and PopularSitesImpl (Closed)
Patch Set: Split PopularSitesImpl. Created 4 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_ANDROID_NTP_POPULAR_SITES_H_ 5 #ifndef CHROME_BROWSER_ANDROID_NTP_POPULAR_SITES_H_
6 #define CHROME_BROWSER_ANDROID_NTP_POPULAR_SITES_H_ 6 #define CHROME_BROWSER_ANDROID_NTP_POPULAR_SITES_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 12
13 class Profile; 13 class Profile;
14 14
15 namespace ntp_tiles { 15 namespace ntp_tiles {
16 class PopularSites; 16 class PopularSitesImpl;
17 } // namespace ntp_tiles 17 } // namespace ntp_tiles
18 18
19 // TODO(sfiera): move to chrome_popular_sites.h 19 // TODO(sfiera): move to chrome_popular_sites.h
20 class ChromePopularSites { 20 class ChromePopularSites {
21 public: 21 public:
22 static std::unique_ptr<ntp_tiles::PopularSites> NewForProfile( 22 static std::unique_ptr<ntp_tiles::PopularSitesImpl> NewForProfile(
sfiera 2016/12/13 10:53:57 Should the factory be promising that it creates a
mastiz 2016/12/13 12:14:56 The alternative would be to move the two remaining
sfiera 2016/12/13 12:30:27 Hmm. They do feel like implementation details, but
mastiz 2016/12/13 12:31:53 Went ahead and exported a new patchset following t
23 Profile* profile); 23 Profile* profile);
24 24
25 private: 25 private:
26 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromePopularSites); 26 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromePopularSites);
27 }; 27 };
28 28
29 #endif // CHROME_BROWSER_ANDROID_NTP_POPULAR_SITES_H_ 29 #endif // CHROME_BROWSER_ANDROID_NTP_POPULAR_SITES_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/ntp/popular_sites.cc » ('j') | components/ntp_tiles/popular_sites.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698