| OLD | NEW |
| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 scoped_refptr<base::RefCountedMemory> new_tab_html_; | 74 scoped_refptr<base::RefCountedMemory> new_tab_html_; |
| 75 | 75 |
| 76 // Returns a message describing any newly-added sync types, or an empty | 76 // Returns a message describing any newly-added sync types, or an empty |
| 77 // string if all types have already been acknowledged. | 77 // string if all types have already been acknowledged. |
| 78 base::string16 GetSyncTypeMessage(); | 78 base::string16 GetSyncTypeMessage(); |
| 79 | 79 |
| 80 void CreateNewTabIncognitoHTML(); | 80 void CreateNewTabIncognitoHTML(); |
| 81 void CreateNewTabIncognitoCSS(); | 81 void CreateNewTabIncognitoCSS(); |
| 82 | 82 |
| 83 void CreateNewTabGuestHTML(); | 83 void CreateNewTabGuestHTML(); |
| 84 void CreateNewTabGuestCSS(); | |
| 85 | 84 |
| 86 void CreateNewTabCSS(); | 85 void CreateNewTabCSS(); |
| 87 | 86 |
| 88 scoped_refptr<base::RefCountedMemory> new_tab_guest_html_; | 87 scoped_refptr<base::RefCountedMemory> new_tab_guest_html_; |
| 89 scoped_refptr<base::RefCountedMemory> new_tab_guest_css_; | 88 scoped_refptr<base::RefCountedMemory> new_tab_guest_css_; |
| 90 scoped_refptr<base::RefCountedMemory> new_tab_incognito_html_; | 89 scoped_refptr<base::RefCountedMemory> new_tab_incognito_html_; |
| 91 scoped_refptr<base::RefCountedMemory> new_tab_incognito_css_; | 90 scoped_refptr<base::RefCountedMemory> new_tab_incognito_css_; |
| 92 scoped_refptr<base::RefCountedMemory> new_tab_css_; | 91 scoped_refptr<base::RefCountedMemory> new_tab_css_; |
| 93 content::NotificationRegistrar registrar_; | 92 content::NotificationRegistrar registrar_; |
| 94 PrefChangeRegistrar profile_pref_change_registrar_; | 93 PrefChangeRegistrar profile_pref_change_registrar_; |
| 95 PrefChangeRegistrar local_state_pref_change_registrar_; | 94 PrefChangeRegistrar local_state_pref_change_registrar_; |
| 96 scoped_ptr<web_resource::PromoResourceService::StateChangedSubscription> | 95 scoped_ptr<web_resource::PromoResourceService::StateChangedSubscription> |
| 97 promo_resource_subscription_; | 96 promo_resource_subscription_; |
| 98 | 97 |
| 99 // Set based on platform_util::IsSwipeTrackingFromScrollEventsEnabled. | 98 // Set based on platform_util::IsSwipeTrackingFromScrollEventsEnabled. |
| 100 bool is_swipe_tracking_from_scroll_events_enabled_; | 99 bool is_swipe_tracking_from_scroll_events_enabled_; |
| 101 // Set based on NewTabUI::ShouldShowApps. | 100 // Set based on NewTabUI::ShouldShowApps. |
| 102 bool should_show_apps_page_; | 101 bool should_show_apps_page_; |
| 103 bool should_show_other_devices_menu_; | 102 bool should_show_other_devices_menu_; |
| 104 | 103 |
| 105 DISALLOW_COPY_AND_ASSIGN(NTPResourceCache); | 104 DISALLOW_COPY_AND_ASSIGN(NTPResourceCache); |
| 106 }; | 105 }; |
| 107 | 106 |
| 108 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_ | 107 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_ |
| OLD | NEW |