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_LOCAL_NTP_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ |
6 #define CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ | 6 #define CHROME_BROWSER_SEARCH_LOCAL_NTP_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 "content/public/browser/url_data_source.h" | 10 #include "content/public/browser/url_data_source.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 // Overridden from content::URLDataSource: | 21 // Overridden from content::URLDataSource: |
22 virtual std::string GetSource() OVERRIDE; | 22 virtual std::string GetSource() OVERRIDE; |
23 virtual void StartDataRequest( | 23 virtual void StartDataRequest( |
24 const std::string& path, | 24 const std::string& path, |
25 bool is_incognito, | 25 bool is_incognito, |
26 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; | 26 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; |
27 virtual std::string GetMimeType(const std::string& path) const OVERRIDE; | 27 virtual std::string GetMimeType(const std::string& path) const OVERRIDE; |
28 virtual bool ShouldServiceRequest( | 28 virtual bool ShouldServiceRequest( |
29 const net::URLRequest* request) const OVERRIDE; | 29 const net::URLRequest* request) const OVERRIDE; |
30 | 30 |
| 31 // Strips any query parameters from the specified path. |
| 32 std::string StripParameters(const std::string& path) const; |
| 33 |
31 DISALLOW_COPY_AND_ASSIGN(LocalNtpSource); | 34 DISALLOW_COPY_AND_ASSIGN(LocalNtpSource); |
32 }; | 35 }; |
33 | 36 |
34 #endif // CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ | 37 #endif // CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ |
OLD | NEW |