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

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

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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"
(...skipping 30 matching lines...) Expand all
41 virtual void FetchFileIcon( 41 virtual void FetchFileIcon(
42 const base::FilePath& path, 42 const base::FilePath& path,
43 float scale_factor, 43 float scale_factor,
44 IconLoader::IconSize icon_size, 44 IconLoader::IconSize icon_size,
45 const content::URLDataSource::GotDataCallback& callback); 45 const content::URLDataSource::GotDataCallback& callback);
46 46
47 private: 47 private:
48 // Contains the necessary information for completing an icon fetch request. 48 // Contains the necessary information for completing an icon fetch request.
49 struct IconRequestDetails { 49 struct IconRequestDetails {
50 IconRequestDetails(); 50 IconRequestDetails();
51 IconRequestDetails(const IconRequestDetails& other);
51 ~IconRequestDetails(); 52 ~IconRequestDetails();
52 53
53 // The callback to run with the response. 54 // The callback to run with the response.
54 content::URLDataSource::GotDataCallback callback; 55 content::URLDataSource::GotDataCallback callback;
55 56
56 // The requested scale factor to respond with. 57 // The requested scale factor to respond with.
57 float scale_factor; 58 float scale_factor;
58 }; 59 };
59 60
60 // Called when favicon data is available from the history backend. 61 // Called when favicon data is available from the history backend.
61 void OnFileIconDataAvailable(const IconRequestDetails& details, 62 void OnFileIconDataAvailable(const IconRequestDetails& details,
62 gfx::Image* icon); 63 gfx::Image* icon);
63 64
64 // Tracks tasks requesting file icons. 65 // Tracks tasks requesting file icons.
65 base::CancelableTaskTracker cancelable_task_tracker_; 66 base::CancelableTaskTracker cancelable_task_tracker_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(FileIconSource); 68 DISALLOW_COPY_AND_ASSIGN(FileIconSource);
68 }; 69 };
69 #endif // CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_ 70 #endif // CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698