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

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

Issue 1362223002: Cleanup: Remove references to tests that no longer exists / are unused. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU Created 5 years, 3 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
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 <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h"
11 #include "base/prefs/pref_change_registrar.h" 10 #include "base/prefs/pref_change_registrar.h"
12 #include "base/time/time.h" 11 #include "base/time/time.h"
13 #include "base/timer/timer.h" 12 #include "base/timer/timer.h"
14 #include "content/public/browser/notification_observer.h" 13 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h" 14 #include "content/public/browser/notification_registrar.h"
16 #include "content/public/browser/url_data_source.h" 15 #include "content/public/browser/url_data_source.h"
17 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
18 #include "content/public/browser/web_contents_observer.h" 17 #include "content/public/browser/web_contents_observer.h"
19 #include "content/public/browser/web_ui_controller.h" 18 #include "content/public/browser/web_ui_controller.h"
20 19
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Pointer back to the original profile. 97 // Pointer back to the original profile.
99 Profile* profile_; 98 Profile* profile_;
100 99
101 // Maps resource files to mime types an resource ids. 100 // Maps resource files to mime types an resource ids.
102 std::map<std::string, std::pair<std::string, int> > resource_map_; 101 std::map<std::string, std::pair<std::string, int> > resource_map_;
103 102
104 DISALLOW_COPY_AND_ASSIGN(NewTabHTMLSource); 103 DISALLOW_COPY_AND_ASSIGN(NewTabHTMLSource);
105 }; 104 };
106 105
107 private: 106 private:
108 FRIEND_TEST_ALL_PREFIXES(NewTabUITest, UpdateUserPrefsVersion);
109
110 // content::NotificationObserver implementation. 107 // content::NotificationObserver implementation.
111 void Observe(int type, 108 void Observe(int type,
112 const content::NotificationSource& source, 109 const content::NotificationSource& source,
113 const content::NotificationDetails& details) override; 110 const content::NotificationDetails& details) override;
114 111
115 // If |web_contents| has an NTP URL, emits a number of NTP statistics (like 112 // If |web_contents| has an NTP URL, emits a number of NTP statistics (like
116 // mouseovers counts) associated with |web_contents|, to be logged in UMA 113 // mouseovers counts) associated with |web_contents|, to be logged in UMA
117 // histograms. 114 // histograms.
118 void EmitNtpStatistics(); 115 void EmitNtpStatistics();
119 116
(...skipping 17 matching lines...) Expand all
137 134
138 // If the sync promo NTP bubble is being shown. 135 // If the sync promo NTP bubble is being shown.
139 bool showing_sync_bubble_; 136 bool showing_sync_bubble_;
140 137
141 PrefChangeRegistrar pref_change_registrar_; 138 PrefChangeRegistrar pref_change_registrar_;
142 139
143 DISALLOW_COPY_AND_ASSIGN(NewTabUI); 140 DISALLOW_COPY_AND_ASSIGN(NewTabUI);
144 }; 141 };
145 142
146 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 143 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/favicon_source.h ('k') | chrome/browser/ui/webui/print_preview/print_preview_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698