| 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 14 matching lines...) Expand all Loading... |
| 25 virtual void StartDataRequest( | 25 virtual void StartDataRequest( |
| 26 const std::string& path, | 26 const std::string& path, |
| 27 int render_process_id, | 27 int render_process_id, |
| 28 int render_frame_id, | 28 int render_frame_id, |
| 29 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; | 29 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; |
| 30 virtual std::string GetMimeType(const std::string& path) const OVERRIDE; | 30 virtual std::string GetMimeType(const std::string& path) const OVERRIDE; |
| 31 virtual bool ShouldServiceRequest( | 31 virtual bool ShouldServiceRequest( |
| 32 const net::URLRequest* request) const OVERRIDE; | 32 const net::URLRequest* request) const OVERRIDE; |
| 33 virtual std::string GetContentSecurityPolicyFrameSrc() const OVERRIDE; | 33 virtual std::string GetContentSecurityPolicyFrameSrc() const OVERRIDE; |
| 34 | 34 |
| 35 // Sends a local resource with a specific |class_name| substituted. |
| 36 void SendResourceWithClass( |
| 37 int resource_id, |
| 38 const std::string& class_name, |
| 39 const content::URLDataSource::GotDataCallback& callback); |
| 40 |
| 35 Profile* profile_; | 41 Profile* profile_; |
| 36 | 42 |
| 37 DISALLOW_COPY_AND_ASSIGN(LocalNtpSource); | 43 DISALLOW_COPY_AND_ASSIGN(LocalNtpSource); |
| 38 }; | 44 }; |
| 39 | 45 |
| 40 #endif // CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ | 46 #endif // CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ |
| OLD | NEW |