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_FILEICON_SOURCE_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_CHROMEOS_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_CHROMEOS_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_CHROMEOS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
| 10 |
10 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
11 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
12 | 13 |
13 namespace net { | |
14 class URLRequest; | |
15 class URLRequestJob; | |
16 } // namespace net | |
17 | |
18 class GURL; | |
19 | |
20 // A DataSource for chrome://fileicon/ URLs, but reads from | 14 // A DataSource for chrome://fileicon/ URLs, but reads from |
21 // resources instead of disk. Allows for parameterization | 15 // resources instead of disk. Allows for parameterization |
22 // via chrome://fileicon/path.ext?size=[small|medium|large] | 16 // via chrome://fileicon/path.ext?size=[small|medium|large] |
23 class FileIconSourceCros : public ChromeURLDataManager::DataSource { | 17 class FileIconSourceCros : public ChromeURLDataManager::DataSource { |
24 public: | 18 public: |
25 FileIconSourceCros(); | 19 FileIconSourceCros(); |
26 | 20 |
27 // Overridden from ChromeURLDataManager::DataSource. | 21 // Overridden from ChromeURLDataManager::DataSource. |
28 virtual void StartDataRequest(const std::string& url, | 22 virtual void StartDataRequest(const std::string& url, |
29 bool is_incognito, | 23 bool is_incognito, |
30 int request_id) OVERRIDE; | 24 int request_id) OVERRIDE; |
31 virtual std::string GetMimeType(const std::string&) const OVERRIDE; | 25 virtual std::string GetMimeType(const std::string&) const OVERRIDE; |
32 | 26 |
33 private: | 27 private: |
34 virtual ~FileIconSourceCros(); | 28 virtual ~FileIconSourceCros(); |
35 | 29 |
36 DISALLOW_COPY_AND_ASSIGN(FileIconSourceCros); | 30 DISALLOW_COPY_AND_ASSIGN(FileIconSourceCros); |
37 }; | 31 }; |
38 | 32 |
39 #endif // CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_CHROMEOS_H_ | 33 #endif // CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_CHROMEOS_H_ |
40 | |
OLD | NEW |