Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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_DOM_UI_SHARED_RESOURCES_DATA_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_SHARED_RESOURCES_DATA_SOURCE_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_SHARED_RESOURCES_DATA_SOURCE_H_ | 6 #define CHROME_BROWSER_DOM_UI_SHARED_RESOURCES_DATA_SOURCE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 9 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
| 10 | 10 |
| 11 class GURL; | 11 namespace net { |
| 12 class URLRequest; | 12 class URLRequest; |
|
wtc
2010/11/30 01:51:53
It seems that this header file doesn't need any of
| |
| 13 class URLRequestJob; | 13 class URLRequestJob; |
| 14 } // namespace net | |
| 15 | |
| 16 class GURL; | |
| 14 | 17 |
| 15 // A DataSource for chrome://resources/ URLs. | 18 // A DataSource for chrome://resources/ URLs. |
| 16 class SharedResourcesDataSource : public ChromeURLDataManager::DataSource { | 19 class SharedResourcesDataSource : public ChromeURLDataManager::DataSource { |
| 17 public: | 20 public: |
| 18 // Registers an instance of this data source with the ChromeUrlDataManager. | 21 // Registers an instance of this data source with the ChromeUrlDataManager. |
| 19 static void Register(); | 22 static void Register(); |
| 20 | 23 |
| 21 // Overridden from ChromeURLDataManager::DataSource: | 24 // Overridden from ChromeURLDataManager::DataSource: |
| 22 virtual void StartDataRequest(const std::string& path, | 25 virtual void StartDataRequest(const std::string& path, |
| 23 bool is_off_the_record, | 26 bool is_off_the_record, |
| 24 int request_id); | 27 int request_id); |
| 25 virtual std::string GetMimeType(const std::string&) const; | 28 virtual std::string GetMimeType(const std::string&) const; |
| 26 | 29 |
| 27 private: | 30 private: |
| 28 SharedResourcesDataSource(); | 31 SharedResourcesDataSource(); |
| 29 ~SharedResourcesDataSource(); | 32 ~SharedResourcesDataSource(); |
| 30 | 33 |
| 31 DISALLOW_COPY_AND_ASSIGN(SharedResourcesDataSource); | 34 DISALLOW_COPY_AND_ASSIGN(SharedResourcesDataSource); |
| 32 }; | 35 }; |
| 33 | 36 |
| 34 #endif // CHROME_BROWSER_DOM_UI_SHARED_RESOURCES_DATA_SOURCE_H_ | 37 #endif // CHROME_BROWSER_DOM_UI_SHARED_RESOURCES_DATA_SOURCE_H_ |
| OLD | NEW |