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

Side by Side Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.h

Issue 1130753007: Start axing NTP4 dead code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: estade@ review Created 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 void set_should_show_apps_page(bool should_show_apps_page) { 45 void set_should_show_apps_page(bool should_show_apps_page) {
46 should_show_apps_page_ = should_show_apps_page; 46 should_show_apps_page_ = should_show_apps_page;
47 } 47 }
48 void set_should_show_most_visited_page(bool should_show_most_visited_page) { 48 void set_should_show_most_visited_page(bool should_show_most_visited_page) {
49 should_show_most_visited_page_ = should_show_most_visited_page; 49 should_show_most_visited_page_ = should_show_most_visited_page;
50 } 50 }
51 void set_should_show_other_devices_menu(bool should_show_other_devices_menu) { 51 void set_should_show_other_devices_menu(bool should_show_other_devices_menu) {
52 should_show_other_devices_menu_ = should_show_other_devices_menu; 52 should_show_other_devices_menu_ = should_show_other_devices_menu;
53 } 53 }
54 void set_should_show_recently_closed_menu(
55 bool should_show_recently_closed_menu) {
56 should_show_recently_closed_menu_ = should_show_recently_closed_menu;
57 }
58 // content::NotificationObserver interface. 54 // content::NotificationObserver interface.
59 void Observe(int type, 55 void Observe(int type,
60 const content::NotificationSource& source, 56 const content::NotificationSource& source,
61 const content::NotificationDetails& details) override; 57 const content::NotificationDetails& details) override;
62 58
63 static WindowType GetWindowType( 59 static WindowType GetWindowType(
64 Profile* profile, content::RenderProcessHost* render_host); 60 Profile* profile, content::RenderProcessHost* render_host);
65 61
66 private: 62 private:
67 void OnPreferenceChanged(); 63 void OnPreferenceChanged();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 promo_resource_subscription_; 100 promo_resource_subscription_;
105 101
106 // Set based on platform_util::IsSwipeTrackingFromScrollEventsEnabled. 102 // Set based on platform_util::IsSwipeTrackingFromScrollEventsEnabled.
107 bool is_swipe_tracking_from_scroll_events_enabled_; 103 bool is_swipe_tracking_from_scroll_events_enabled_;
108 // Set based on NewTabUI::ShouldShowApps. 104 // Set based on NewTabUI::ShouldShowApps.
109 bool should_show_apps_page_; 105 bool should_show_apps_page_;
110 // The next three all default to true and can be manually set, e.g., by the 106 // The next three all default to true and can be manually set, e.g., by the
111 // chrome://apps page. 107 // chrome://apps page.
112 bool should_show_most_visited_page_; 108 bool should_show_most_visited_page_;
113 bool should_show_other_devices_menu_; 109 bool should_show_other_devices_menu_;
114 bool should_show_recently_closed_menu_;
115 110
116 DISALLOW_COPY_AND_ASSIGN(NTPResourceCache); 111 DISALLOW_COPY_AND_ASSIGN(NTPResourceCache);
117 }; 112 };
118 113
119 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_ 114 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.cc ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698