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

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

Issue 259393006: Remove WebUI NTP on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Helper to determine if the resource cache should be invalidated. 70 // Helper to determine if the resource cache should be invalidated.
71 // This is called on every page load, and can be used to check values that 71 // This is called on every page load, and can be used to check values that
72 // don't generate a notification when changed (e.g., system preferences). 72 // don't generate a notification when changed (e.g., system preferences).
73 bool NewTabCacheNeedsRefresh(); 73 bool NewTabCacheNeedsRefresh();
74 74
75 Profile* profile_; 75 Profile* profile_;
76 76
77 scoped_refptr<base::RefCountedMemory> new_tab_html_; 77 scoped_refptr<base::RefCountedMemory> new_tab_html_;
78 78
79 #if !defined(OS_ANDROID)
80 // Returns a message describing any newly-added sync types, or an empty 79 // Returns a message describing any newly-added sync types, or an empty
81 // string if all types have already been acknowledged. 80 // string if all types have already been acknowledged.
82 base::string16 GetSyncTypeMessage(); 81 base::string16 GetSyncTypeMessage();
83 82
84 void CreateNewTabIncognitoHTML(); 83 void CreateNewTabIncognitoHTML();
85 void CreateNewTabIncognitoCSS(); 84 void CreateNewTabIncognitoCSS();
86 85
87 void CreateNewTabGuestHTML(); 86 void CreateNewTabGuestHTML();
88 void CreateNewTabGuestCSS(); 87 void CreateNewTabGuestCSS();
89 88
90 void CreateNewTabCSS(); 89 void CreateNewTabCSS();
91 90
92 scoped_refptr<base::RefCountedMemory> new_tab_guest_html_; 91 scoped_refptr<base::RefCountedMemory> new_tab_guest_html_;
93 scoped_refptr<base::RefCountedMemory> new_tab_guest_css_; 92 scoped_refptr<base::RefCountedMemory> new_tab_guest_css_;
94 scoped_refptr<base::RefCountedMemory> new_tab_incognito_html_; 93 scoped_refptr<base::RefCountedMemory> new_tab_incognito_html_;
95 scoped_refptr<base::RefCountedMemory> new_tab_incognito_css_; 94 scoped_refptr<base::RefCountedMemory> new_tab_incognito_css_;
96 scoped_refptr<base::RefCountedMemory> new_tab_css_; 95 scoped_refptr<base::RefCountedMemory> new_tab_css_;
97 content::NotificationRegistrar registrar_; 96 content::NotificationRegistrar registrar_;
98 PrefChangeRegistrar profile_pref_change_registrar_; 97 PrefChangeRegistrar profile_pref_change_registrar_;
99 PrefChangeRegistrar local_state_pref_change_registrar_; 98 PrefChangeRegistrar local_state_pref_change_registrar_;
100 #endif
101 99
102 // Set based on platform_util::IsSwipeTrackingFromScrollEventsEnabled. 100 // Set based on platform_util::IsSwipeTrackingFromScrollEventsEnabled.
103 bool is_swipe_tracking_from_scroll_events_enabled_; 101 bool is_swipe_tracking_from_scroll_events_enabled_;
104 // Set based on NewTabUI::ShouldShowApps. 102 // Set based on NewTabUI::ShouldShowApps.
105 bool should_show_apps_page_; 103 bool should_show_apps_page_;
106 // The next three all default to true and can be manually set, e.g., by the 104 // The next three all default to true and can be manually set, e.g., by the
107 // chrome://apps page. 105 // chrome://apps page.
108 bool should_show_most_visited_page_; 106 bool should_show_most_visited_page_;
109 bool should_show_other_devices_menu_; 107 bool should_show_other_devices_menu_;
110 bool should_show_recently_closed_menu_; 108 bool should_show_recently_closed_menu_;
111 109
112 DISALLOW_COPY_AND_ASSIGN(NTPResourceCache); 110 DISALLOW_COPY_AND_ASSIGN(NTPResourceCache);
113 }; 111 };
114 112
115 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_ 113 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/ntp_login_handler.cc ('k') | chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698