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

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

Issue 10855075: Clean-up inline members of nested classes (chrome/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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_NEW_TAB_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 virtual bool ShouldReplaceExistingSource() const OVERRIDE; 78 virtual bool ShouldReplaceExistingSource() const OVERRIDE;
79 79
80 // Adds |resource| to the source. |resource_id| is resource id or 0, 80 // Adds |resource| to the source. |resource_id| is resource id or 0,
81 // which means return empty data set. |mime_type| is mime type of the 81 // which means return empty data set. |mime_type| is mime type of the
82 // resource. 82 // resource.
83 void AddResource(const char* resource, 83 void AddResource(const char* resource,
84 const char *mime_type, 84 const char *mime_type,
85 int resource_id); 85 int resource_id);
86 86
87 private: 87 private:
88 virtual ~NewTabHTMLSource() {} 88 virtual ~NewTabHTMLSource();
89 89
90 // Pointer back to the original profile. 90 // Pointer back to the original profile.
91 Profile* profile_; 91 Profile* profile_;
92 92
93 // Maps resource files to mime types an resource ids. 93 // Maps resource files to mime types an resource ids.
94 std::map<std::string, std::pair<std::string, int> > resource_map_; 94 std::map<std::string, std::pair<std::string, int> > resource_map_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(NewTabHTMLSource); 96 DISALLOW_COPY_AND_ASSIGN(NewTabHTMLSource);
97 }; 97 };
98 98
(...skipping 25 matching lines...) Expand all
124 124
125 // If the sync promo NTP bubble is being shown. 125 // If the sync promo NTP bubble is being shown.
126 bool showing_sync_bubble_; 126 bool showing_sync_bubble_;
127 127
128 PrefChangeRegistrar pref_change_registrar_; 128 PrefChangeRegistrar pref_change_registrar_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(NewTabUI); 130 DISALLOW_COPY_AND_ASSIGN(NewTabUI);
131 }; 131 };
132 132
133 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 133 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chrome_url_data_manager.cc ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698