OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 RefCountedMemory* GetNewTabCSS(bool is_incognito); | 30 RefCountedMemory* GetNewTabCSS(bool is_incognito); |
31 | 31 |
32 // content::NotificationObserver interface. | 32 // content::NotificationObserver interface. |
33 virtual void Observe(int type, | 33 virtual void Observe(int type, |
34 const content::NotificationSource& source, | 34 const content::NotificationSource& source, |
35 const content::NotificationDetails& details) OVERRIDE; | 35 const content::NotificationDetails& details) OVERRIDE; |
36 | 36 |
37 private: | 37 private: |
38 Profile* profile_; | 38 Profile* profile_; |
39 | 39 |
| 40 #if !defined(OS_ANDROID) |
40 // Returns a message describing any newly-added sync types, or an empty | 41 // Returns a message describing any newly-added sync types, or an empty |
41 // string if all types have already been acknowledged. | 42 // string if all types have already been acknowledged. |
42 string16 GetSyncTypeMessage(); | 43 string16 GetSyncTypeMessage(); |
43 | 44 |
44 void CreateNewTabIncognitoHTML(); | 45 void CreateNewTabIncognitoHTML(); |
45 scoped_refptr<RefCountedMemory> new_tab_incognito_html_; | 46 scoped_refptr<RefCountedMemory> new_tab_incognito_html_; |
46 void CreateNewTabHTML(); | 47 void CreateNewTabHTML(); |
47 scoped_refptr<RefCountedMemory> new_tab_html_; | 48 scoped_refptr<RefCountedMemory> new_tab_html_; |
48 | 49 |
49 void CreateNewTabIncognitoCSS(); | 50 void CreateNewTabIncognitoCSS(); |
50 scoped_refptr<RefCountedMemory> new_tab_incognito_css_; | 51 scoped_refptr<RefCountedMemory> new_tab_incognito_css_; |
51 void CreateNewTabCSS(); | 52 void CreateNewTabCSS(); |
52 scoped_refptr<RefCountedMemory> new_tab_css_; | 53 scoped_refptr<RefCountedMemory> new_tab_css_; |
53 | 54 |
54 content::NotificationRegistrar registrar_; | 55 content::NotificationRegistrar registrar_; |
55 PrefChangeRegistrar pref_change_registrar_; | 56 PrefChangeRegistrar pref_change_registrar_; |
| 57 #else |
| 58 void CreateNewTabHTML(); |
| 59 scoped_refptr<RefCountedMemory> new_tab_html_; |
| 60 #endif |
56 | 61 |
57 DISALLOW_COPY_AND_ASSIGN(NTPResourceCache); | 62 DISALLOW_COPY_AND_ASSIGN(NTPResourceCache); |
58 }; | 63 }; |
59 | 64 |
60 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_ | 65 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_ |
OLD | NEW |