OLD | NEW |
| (Empty) |
1 // Copyright (c) 2010 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. | |
4 | |
5 #ifndef CHROME_BROWSER_DOM_UI_SHARED_RESOURCES_DATA_SOURCE_H_ | |
6 #define CHROME_BROWSER_DOM_UI_SHARED_RESOURCES_DATA_SOURCE_H_ | |
7 | |
8 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | |
9 | |
10 class GURL; | |
11 class URLRequest; | |
12 class URLRequestJob; | |
13 | |
14 // A DataSource for chrome://resources/ URLs. | |
15 class SharedResourcesDataSource : public ChromeURLDataManager::DataSource { | |
16 public: | |
17 // Registers an instance of this data source with the ChromeUrlDataManager. | |
18 static void Register(); | |
19 | |
20 // Overridden from ChromeURLDataManager::DataSource: | |
21 virtual void StartDataRequest(const std::string& path, | |
22 bool is_off_the_record, | |
23 int request_id); | |
24 virtual std::string GetMimeType(const std::string&) const; | |
25 | |
26 private: | |
27 SharedResourcesDataSource(); | |
28 ~SharedResourcesDataSource(); | |
29 | |
30 DISALLOW_COPY_AND_ASSIGN(SharedResourcesDataSource); | |
31 }; | |
32 | |
33 #endif // CHROME_BROWSER_DOM_UI_SHARED_RESOURCES_DATA_SOURCE_H_ | |
OLD | NEW |