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

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

Issue 137263007: Move CancelableTaskTracker to //base/task/CancelableTaskTracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move to base/task/cancelable_task_tracker* Created 6 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
« no previous file with comments | « chrome/browser/ui/webui/favicon_source.h ('k') | chrome/browser/ui/webui/help/help_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/task/cancelable_task_tracker.h"
11 #include "chrome/browser/icon_manager.h" 12 #include "chrome/browser/icon_manager.h"
12 #include "chrome/common/cancelable_task_tracker.h"
13 #include "content/public/browser/url_data_source.h" 13 #include "content/public/browser/url_data_source.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 content::URLDataSource { 22 class FileIconSource : public content::URLDataSource {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // The requested scale factor to respond with. 56 // The requested scale factor to respond with.
57 ui::ScaleFactor scale_factor; 57 ui::ScaleFactor scale_factor;
58 }; 58 };
59 59
60 // Called when favicon data is available from the history backend. 60 // Called when favicon data is available from the history backend.
61 void OnFileIconDataAvailable(const IconRequestDetails& details, 61 void OnFileIconDataAvailable(const IconRequestDetails& details,
62 gfx::Image* icon); 62 gfx::Image* icon);
63 63
64 // Tracks tasks requesting file icons. 64 // Tracks tasks requesting file icons.
65 CancelableTaskTracker cancelable_task_tracker_; 65 base::CancelableTaskTracker cancelable_task_tracker_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(FileIconSource); 67 DISALLOW_COPY_AND_ASSIGN(FileIconSource);
68 }; 68 };
69 #endif // CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_ 69 #endif // CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/favicon_source.h ('k') | chrome/browser/ui/webui/help/help_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698