OLD | NEW |
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" | |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
10 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/macros.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 ~MostVisitedIframeSource() override; | 18 ~MostVisitedIframeSource() override; |
19 | 19 |
20 // Overridden from IframeSource. Public for testing. | 20 // Overridden from IframeSource. Public for testing. |
(...skipping 10 matching lines...) Expand all Loading... |
31 bool ServesPath(const std::string& path) const override; | 31 bool ServesPath(const std::string& path) const override; |
32 | 32 |
33 private: | 33 private: |
34 FRIEND_TEST_ALL_PREFIXES(MostVisitedIframeSourceTest, | 34 FRIEND_TEST_ALL_PREFIXES(MostVisitedIframeSourceTest, |
35 LogEndpointIsValidWithProvider); | 35 LogEndpointIsValidWithProvider); |
36 | 36 |
37 DISALLOW_COPY_AND_ASSIGN(MostVisitedIframeSource); | 37 DISALLOW_COPY_AND_ASSIGN(MostVisitedIframeSource); |
38 }; | 38 }; |
39 | 39 |
40 #endif // CHROME_BROWSER_SEARCH_MOST_VISITED_IFRAME_SOURCE_H_ | 40 #endif // CHROME_BROWSER_SEARCH_MOST_VISITED_IFRAME_SOURCE_H_ |
OLD | NEW |