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

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

Issue 9558014: Add an android specific ntp resource cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/ntp/ntp_resource_cache_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 void CreateNewTabHTML();
41 scoped_refptr<RefCountedMemory> new_tab_html_;
42
43 #if !defined(OS_ANDROID)
40 // Returns a message describing any newly-added sync types, or an empty 44 // Returns a message describing any newly-added sync types, or an empty
41 // string if all types have already been acknowledged. 45 // string if all types have already been acknowledged.
42 string16 GetSyncTypeMessage(); 46 string16 GetSyncTypeMessage();
43 47
44 void CreateNewTabIncognitoHTML(); 48 void CreateNewTabIncognitoHTML();
45 scoped_refptr<RefCountedMemory> new_tab_incognito_html_; 49 scoped_refptr<RefCountedMemory> new_tab_incognito_html_;
46 void CreateNewTabHTML();
47 scoped_refptr<RefCountedMemory> new_tab_html_;
48 50
49 void CreateNewTabIncognitoCSS(); 51 void CreateNewTabIncognitoCSS();
50 scoped_refptr<RefCountedMemory> new_tab_incognito_css_; 52 scoped_refptr<RefCountedMemory> new_tab_incognito_css_;
51 void CreateNewTabCSS(); 53 void CreateNewTabCSS();
52 scoped_refptr<RefCountedMemory> new_tab_css_; 54 scoped_refptr<RefCountedMemory> new_tab_css_;
53 55
54 content::NotificationRegistrar registrar_; 56 content::NotificationRegistrar registrar_;
55 PrefChangeRegistrar pref_change_registrar_; 57 PrefChangeRegistrar pref_change_registrar_;
58 #endif
56 59
57 DISALLOW_COPY_AND_ASSIGN(NTPResourceCache); 60 DISALLOW_COPY_AND_ASSIGN(NTPResourceCache);
58 }; 61 };
59 62
60 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_ 63 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/ntp/ntp_resource_cache_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698