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

Side by Side Diff: chrome/browser/search/most_visited_iframe_source.h

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
« no previous file with comments | « chrome/browser/search/local_ntp_source.h ('k') | chrome/browser/search/search_terms_tracker.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SEARCH_MOST_VISITED_IFRAME_SOURCE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_MOST_VISITED_IFRAME_SOURCE_H_
6 #define CHROME_BROWSER_SEARCH_MOST_VISITED_IFRAME_SOURCE_H_ 6 #define CHROME_BROWSER_SEARCH_MOST_VISITED_IFRAME_SOURCE_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/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "chrome/browser/search/iframe_source.h" 11 #include "chrome/browser/search/iframe_source.h"
12 12
13 // Serves HTML for displaying suggestions using iframes, e.g. 13 // Serves HTML for displaying suggestions using iframes, e.g.
14 // chrome-search://suggestion/loader.html 14 // chrome-search://suggestion/loader.html
15 class MostVisitedIframeSource : public IframeSource { 15 class MostVisitedIframeSource : public IframeSource {
16 public: 16 public:
17 MostVisitedIframeSource(); 17 MostVisitedIframeSource();
18 virtual ~MostVisitedIframeSource(); 18 virtual ~MostVisitedIframeSource();
19 19
20 // Number of Most Visited elements on the NTP for logging purposes. 20 // Number of Most Visited elements on the NTP for logging purposes.
21 static const int kNumMostVisited; 21 static const int kNumMostVisited;
22 // Name of the histogram keeping track of Most Visited clicks. 22 // Name of the histogram keeping track of Most Visited clicks.
23 static const char kMostVisitedHistogramName[]; 23 static const char kMostVisitedHistogramName[];
24 24
25 // Overridden from IframeSource. Public for testing. 25 // Overridden from IframeSource. Public for testing.
26 virtual void StartDataRequest( 26 virtual void StartDataRequest(
27 const std::string& path_and_query, 27 const std::string& path_and_query,
28 int render_process_id, 28 int render_process_id,
29 int render_frame_id, 29 int render_frame_id,
30 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; 30 const content::URLDataSource::GotDataCallback& callback) override;
31 31
32 protected: 32 protected:
33 // Overridden from IframeSource: 33 // Overridden from IframeSource:
34 virtual std::string GetSource() const OVERRIDE; 34 virtual std::string GetSource() const override;
35 35
36 virtual bool ServesPath(const std::string& path) const OVERRIDE; 36 virtual bool ServesPath(const std::string& path) const override;
37 37
38 private: 38 private:
39 FRIEND_TEST_ALL_PREFIXES(MostVisitedIframeSourceTest, 39 FRIEND_TEST_ALL_PREFIXES(MostVisitedIframeSourceTest,
40 LogEndpointIsValidWithProvider); 40 LogEndpointIsValidWithProvider);
41 41
42 DISALLOW_COPY_AND_ASSIGN(MostVisitedIframeSource); 42 DISALLOW_COPY_AND_ASSIGN(MostVisitedIframeSource);
43 }; 43 };
44 44
45 #endif // CHROME_BROWSER_SEARCH_MOST_VISITED_IFRAME_SOURCE_H_ 45 #endif // CHROME_BROWSER_SEARCH_MOST_VISITED_IFRAME_SOURCE_H_
OLDNEW
« no previous file with comments | « chrome/browser/search/local_ntp_source.h ('k') | chrome/browser/search/search_terms_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698