OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <string> |
| 10 |
9 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 11 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
10 | 12 |
11 namespace net { | |
12 class URLRequest; | |
13 class URLRequestJob; | |
14 } // namespace net | |
15 | |
16 class GURL; | |
17 | |
18 // A DataSource for chrome://resources/ URLs. | 13 // A DataSource for chrome://resources/ URLs. |
19 class SharedResourcesDataSource : public ChromeURLDataManager::DataSource { | 14 class SharedResourcesDataSource : public ChromeURLDataManager::DataSource { |
20 public: | 15 public: |
21 SharedResourcesDataSource(); | 16 SharedResourcesDataSource(); |
22 | 17 |
23 // Overridden from ChromeURLDataManager::DataSource: | 18 // Overridden from ChromeURLDataManager::DataSource: |
24 virtual void StartDataRequest(const std::string& path, | 19 virtual void StartDataRequest(const std::string& path, |
25 bool is_incognito, | 20 bool is_incognito, |
26 int request_id); | 21 int request_id); |
27 virtual std::string GetMimeType(const std::string&) const; | 22 virtual std::string GetMimeType(const std::string&) const; |
28 | 23 |
29 private: | 24 private: |
30 virtual ~SharedResourcesDataSource(); | 25 virtual ~SharedResourcesDataSource(); |
31 | 26 |
32 DISALLOW_COPY_AND_ASSIGN(SharedResourcesDataSource); | 27 DISALLOW_COPY_AND_ASSIGN(SharedResourcesDataSource); |
33 }; | 28 }; |
34 | 29 |
35 #endif // CHROME_BROWSER_UI_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_ | 30 #endif // CHROME_BROWSER_UI_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_ |
OLD | NEW |