Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / search / most_visited_iframe_source.h
blobd38d9b5789ebf73512360574ff42aec19ab63991
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SEARCH_MOST_VISITED_IFRAME_SOURCE_H_
6 #define CHROME_BROWSER_SEARCH_MOST_VISITED_IFRAME_SOURCE_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/gtest_prod_util.h"
11 #include "chrome/browser/search/iframe_source.h"
13 // Serves HTML for displaying suggestions using iframes, e.g.
14 // chrome-search://suggestion/loader.html
15 class MostVisitedIframeSource : public IframeSource {
16 public:
17 MostVisitedIframeSource();
18 ~MostVisitedIframeSource() override;
20 // Overridden from IframeSource. Public for testing.
21 void StartDataRequest(
22 const std::string& path_and_query,
23 int render_process_id,
24 int render_frame_id,
25 const content::URLDataSource::GotDataCallback& callback) override;
27 protected:
28 // Overridden from IframeSource:
29 std::string GetSource() const override;
31 bool ServesPath(const std::string& path) const override;
33 private:
34 FRIEND_TEST_ALL_PREFIXES(MostVisitedIframeSourceTest,
35 LogEndpointIsValidWithProvider);
37 DISALLOW_COPY_AND_ASSIGN(MostVisitedIframeSource);
40 #endif // CHROME_BROWSER_SEARCH_MOST_VISITED_IFRAME_SOURCE_H_