Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: chrome/browser/ui/webui/fileicon_source_chromeos.h

Issue 9167019: Consolidate icon loading on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_CHROMEOS_H_
7 #pragma once
8
9 #include <string>
10
11 #include "base/compiler_specific.h"
12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
13
14 // A DataSource for chrome://fileicon/ URLs, but reads from
15 // resources instead of disk. Allows for parameterization
16 // via chrome://fileicon/path.ext?size=[small|medium|large]
17 class FileIconSourceCros : public ChromeURLDataManager::DataSource {
18 public:
19 FileIconSourceCros();
20
21 // Overridden from ChromeURLDataManager::DataSource.
22 virtual void StartDataRequest(const std::string& url,
23 bool is_incognito,
24 int request_id) OVERRIDE;
25 virtual std::string GetMimeType(const std::string&) const OVERRIDE;
26
27 private:
28 virtual ~FileIconSourceCros();
29
30 DISALLOW_COPY_AND_ASSIGN(FileIconSourceCros);
31 };
32
33 #endif // CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/fileicon_source.cc ('k') | chrome/browser/ui/webui/fileicon_source_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698