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

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

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_
6 #define CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "chrome/browser/icon_manager.h" 11 #include "chrome/browser/icon_manager.h"
12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
13 #include "chrome/common/cancelable_task_tracker.h" 13 #include "chrome/common/cancelable_task_tracker.h"
14 #include "ui/base/layout.h" 14 #include "ui/base/layout.h"
15 15
16 namespace gfx { 16 namespace gfx {
17 class Image; 17 class Image;
18 } 18 }
19 19
20 // FileIconSource is the gateway between network-level chrome: 20 // FileIconSource is the gateway between network-level chrome:
21 // requests for favicons and the history backend that serves these. 21 // requests for favicons and the history backend that serves these.
22 class FileIconSource : public ChromeURLDataManager::DataSource { 22 class FileIconSource : public ChromeURLDataManager::DataSource {
23 public: 23 public:
24 explicit FileIconSource(); 24 FileIconSource();
25 25
26 // Called when the network layer has requested a resource underneath 26 // Called when the network layer has requested a resource underneath
27 // the path we registered. 27 // the path we registered.
28 virtual void StartDataRequest(const std::string& path, 28 virtual void StartDataRequest(const std::string& path,
29 bool is_incognito, 29 bool is_incognito,
30 int request_id) OVERRIDE; 30 int request_id) OVERRIDE;
31 31
32 virtual std::string GetMimeType(const std::string&) const OVERRIDE; 32 virtual std::string GetMimeType(const std::string&) const OVERRIDE;
33 33
34 protected: 34 protected:
(...skipping 20 matching lines...) Expand all
55 // Called when favicon data is available from the history backend. 55 // Called when favicon data is available from the history backend.
56 void OnFileIconDataAvailable(const IconRequestDetails& details, 56 void OnFileIconDataAvailable(const IconRequestDetails& details,
57 gfx::Image* icon); 57 gfx::Image* icon);
58 58
59 // Tracks tasks requesting file icons. 59 // Tracks tasks requesting file icons.
60 CancelableTaskTracker cancelable_task_tracker_; 60 CancelableTaskTracker cancelable_task_tracker_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(FileIconSource); 62 DISALLOW_COPY_AND_ASSIGN(FileIconSource);
63 }; 63 };
64 #endif // CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_ 64 #endif // CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_info_ui.h ('k') | chrome/browser/ui/webui/fileicon_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698