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

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

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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>
9
8 #include <list> 10 #include <list>
9 #include <map> 11 #include <map>
10 #include <vector> 12 #include <vector>
11 13
12 #include "base/containers/hash_tables.h" 14 #include "base/containers/hash_tables.h"
13 #include "base/files/file.h" 15 #include "base/files/file.h"
14 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 #include "base/macros.h"
15 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
16 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" 19 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h"
17 20
18 // Delegate for presenting an Image Capture device through the filesystem 21 // Delegate for presenting an Image Capture device through the filesystem
19 // API. The synthetic filesystem will be rooted at the constructed location, 22 // API. The synthetic filesystem will be rooted at the constructed location,
20 // 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
21 // all appear as children of that directory. (ItemAdded calls with directories 24 // all appear as children of that directory. (ItemAdded calls with directories
22 // will be ignored.) 25 // will be ignored.)
23 // Note on thread management: This class is thread-compatible: it can be created 26 // Note on thread management: This class is thread-compatible: it can be created
24 // on any thread, but then mutates all state on the UI thread. The async 27 // on any thread, but then mutates all state on the UI thread. The async
(...skipping 24 matching lines...) Expand all
49 52
50 // Note: passed absolute paths. 53 // Note: passed absolute paths.
51 void CreateSnapshotFile( 54 void CreateSnapshotFile(
52 const base::FilePath& device_file_path, 55 const base::FilePath& device_file_path,
53 const base::FilePath& local_path, 56 const base::FilePath& local_path,
54 const CreateSnapshotFileSuccessCallback& success_callback, 57 const CreateSnapshotFileSuccessCallback& success_callback,
55 const ErrorCallback& error_callback) override; 58 const ErrorCallback& error_callback) override;
56 bool IsStreaming() override; 59 bool IsStreaming() override;
57 void ReadBytes(const base::FilePath& device_file_path, 60 void ReadBytes(const base::FilePath& device_file_path,
58 const scoped_refptr<net::IOBuffer>& buf, 61 const scoped_refptr<net::IOBuffer>& buf,
59 int64 offset, 62 int64_t offset,
60 int buf_len, 63 int buf_len,
61 const ReadBytesSuccessCallback& success_callback, 64 const ReadBytesSuccessCallback& success_callback,
62 const ErrorCallback& error_callback) override; 65 const ErrorCallback& error_callback) override;
63 bool IsReadOnly() const override; 66 bool IsReadOnly() const override;
64 void CopyFileLocal( 67 void CopyFileLocal(
65 const base::FilePath& source_file_path, 68 const base::FilePath& source_file_path,
66 const base::FilePath& device_file_path, 69 const base::FilePath& device_file_path,
67 const CreateTemporaryFileCallback& create_temporary_file_callback, 70 const CreateTemporaryFileCallback& create_temporary_file_callback,
68 const CopyFileProgressCallback& progress_callback, 71 const CopyFileProgressCallback& progress_callback,
69 const CopyFileLocalSuccessCallback& success_callback, 72 const CopyFileLocalSuccessCallback& success_callback,
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 195
193 ReadFileTransactionList read_file_transactions_; 196 ReadFileTransactionList read_file_transactions_;
194 ReadDirTransactionList read_dir_transactions_; 197 ReadDirTransactionList read_dir_transactions_;
195 198
196 base::WeakPtrFactory<MTPDeviceDelegateImplMac> weak_factory_; 199 base::WeakPtrFactory<MTPDeviceDelegateImplMac> weak_factory_;
197 200
198 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplMac); 201 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplMac);
199 }; 202 };
200 203
201 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ 204 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698