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 #include "chrome/browser/search/most_visited_iframe_source.h" | 5 #include "chrome/browser/search/most_visited_iframe_source.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/memory/ref_counted_memory.h" | 8 #include "base/memory/ref_counted_memory.h" |
9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/stringprintf.h" | |
12 #include "build/build_config.h" | 11 #include "build/build_config.h" |
13 #include "chrome/browser/search/local_files_ntp_source.h" | 12 #include "chrome/browser/search/local_files_ntp_source.h" |
14 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
15 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
16 #include "chrome/grit/browser_resources.h" | 15 #include "chrome/grit/browser_resources.h" |
17 #include "content/public/browser/user_metrics.h" | 16 #include "content/public/browser/user_metrics.h" |
18 #include "net/base/url_util.h" | 17 #include "net/base/url_util.h" |
19 #include "url/gurl.h" | 18 #include "url/gurl.h" |
20 | 19 |
21 namespace { | 20 namespace { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } | 95 } |
97 } | 96 } |
98 | 97 |
99 bool MostVisitedIframeSource::ServesPath(const std::string& path) const { | 98 bool MostVisitedIframeSource::ServesPath(const std::string& path) const { |
100 return path == kTitleHTMLPath || path == kTitleCSSPath || | 99 return path == kTitleHTMLPath || path == kTitleCSSPath || |
101 path == kTitleJSPath || path == kThumbnailHTMLPath || | 100 path == kTitleJSPath || path == kThumbnailHTMLPath || |
102 path == kThumbnailCSSPath || path == kThumbnailJSPath || | 101 path == kThumbnailCSSPath || path == kThumbnailJSPath || |
103 path == kSingleHTMLPath || path == kSingleCSSPath || | 102 path == kSingleHTMLPath || path == kSingleCSSPath || |
104 path == kSingleJSPath || path == kUtilJSPath || path == kCommonCSSPath; | 103 path == kSingleJSPath || path == kUtilJSPath || path == kCommonCSSPath; |
105 } | 104 } |
OLD | NEW |