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

Side by Side Diff: chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h

Issue 2829163004: Remove uses of base::hash_map from //chrome (Closed)
Patch Set: Downloads back Created 3 years, 5 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_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/containers/hash_tables.h"
16 #include "base/files/file.h" 15 #include "base/files/file.h"
17 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
18 #include "base/macros.h" 17 #include "base/macros.h"
19 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
20 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" 19 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h"
21 20
22 // Delegate for presenting an Image Capture device through the filesystem 21 // Delegate for presenting an Image Capture device through the filesystem
23 // API. The synthetic filesystem will be rooted at the constructed location, 22 // API. The synthetic filesystem will be rooted at the constructed location,
24 // and names of all files notified through the ItemAdded call will be 23 // and names of all files notified through the ItemAdded call will be
25 // all appear as children of that directory. (ItemAdded calls with directories 24 // all appear as children of that directory. (ItemAdded calls with directories
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // has been read. 148 // has been read.
150 void NotifyReadDir(); 149 void NotifyReadDir();
151 150
152 std::string device_id_; 151 std::string device_id_;
153 base::FilePath root_path_; 152 base::FilePath root_path_;
154 153
155 // Interface object for the camera underlying this MTP session. 154 // Interface object for the camera underlying this MTP session.
156 std::unique_ptr<DeviceListener> camera_interface_; 155 std::unique_ptr<DeviceListener> camera_interface_;
157 156
158 // Stores a map from filename to file metadata received from the camera. 157 // Stores a map from filename to file metadata received from the camera.
159 base::hash_map<base::FilePath::StringType, 158 std::map<base::FilePath::StringType, base::File::Info> file_info_;
160 base::File::Info> file_info_;
161 159
162 // List of filenames received from the camera. 160 // List of filenames received from the camera.
163 std::vector<base::FilePath> file_paths_; 161 std::vector<base::FilePath> file_paths_;
164 162
165 // Set to true when all file metadata has been received from the camera. 163 // Set to true when all file metadata has been received from the camera.
166 bool received_all_files_; 164 bool received_all_files_;
167 165
168 struct ReadFileRequest { 166 struct ReadFileRequest {
169 ReadFileRequest(); 167 ReadFileRequest();
170 ReadFileRequest(const std::string& request_file, 168 ReadFileRequest(const std::string& request_file,
(...skipping 27 matching lines...) Expand all
198 196
199 ReadFileTransactionList read_file_transactions_; 197 ReadFileTransactionList read_file_transactions_;
200 ReadDirTransactionList read_dir_transactions_; 198 ReadDirTransactionList read_dir_transactions_;
201 199
202 base::WeakPtrFactory<MTPDeviceDelegateImplMac> weak_factory_; 200 base::WeakPtrFactory<MTPDeviceDelegateImplMac> weak_factory_;
203 201
204 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplMac); 202 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplMac);
205 }; 203 };
206 204
207 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ 205 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698