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

Side by Side Diff: chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/files/file.h" 11 #include "base/files/file.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 #include "base/win/scoped_comptr.h" 16 #include "base/win/scoped_comptr.h"
17 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" 17 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h"
18 #include "webkit/browser/fileapi/async_file_util.h" 18 #include "storage/browser/fileapi/async_file_util.h"
19 19
20 namespace base { 20 namespace base {
21 class FilePath; 21 class FilePath;
22 class SequencedTaskRunner; 22 class SequencedTaskRunner;
23 } 23 }
24 24
25 class SnapshotFileDetails; 25 class SnapshotFileDetails;
26 struct SnapshotRequestInfo; 26 struct SnapshotRequestInfo;
27 27
28 // MTPDeviceDelegateImplWin is used to communicate with the media transfer 28 // MTPDeviceDelegateImplWin is used to communicate with the media transfer
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // Called when ReadDirectory() completes. |file_list| contains the directory 152 // Called when ReadDirectory() completes. |file_list| contains the directory
153 // file entries information. |error| specifies the platform file error code. 153 // file entries information. |error| specifies the platform file error code.
154 // 154 //
155 // If the ReadDirectory() succeeds, |success_callback| is invoked to notify 155 // If the ReadDirectory() succeeds, |success_callback| is invoked to notify
156 // the caller about the directory file entries. 156 // the caller about the directory file entries.
157 // 157 //
158 // If the ReadDirectory() fails, |file_list| is not set and |error_callback| 158 // If the ReadDirectory() fails, |file_list| is not set and |error_callback|
159 // is invoked to notify the caller about the platform file |error|. 159 // is invoked to notify the caller about the platform file |error|.
160 void OnDidReadDirectory(const ReadDirectorySuccessCallback& success_callback, 160 void OnDidReadDirectory(const ReadDirectorySuccessCallback& success_callback,
161 const ErrorCallback& error_callback, 161 const ErrorCallback& error_callback,
162 fileapi::AsyncFileUtil::EntryList* file_list, 162 storage::AsyncFileUtil::EntryList* file_list,
163 base::File::Error error); 163 base::File::Error error);
164 164
165 // Called when the get file stream request completes. 165 // Called when the get file stream request completes.
166 // |file_details.request_info| contains the CreateSnapshot request param 166 // |file_details.request_info| contains the CreateSnapshot request param
167 // details. |error| specifies the platform file error code. 167 // details. |error| specifies the platform file error code.
168 // 168 //
169 // If the file stream of the device file is successfully 169 // If the file stream of the device file is successfully
170 // fetched, |file_details| will contain the required details for the creation 170 // fetched, |file_details| will contain the required details for the creation
171 // of the snapshot file. 171 // of the snapshot file.
172 // 172 //
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // Used to make sure only one task is in progress at any time. 213 // Used to make sure only one task is in progress at any time.
214 bool task_in_progress_; 214 bool task_in_progress_;
215 215
216 // For callbacks that may run after destruction. 216 // For callbacks that may run after destruction.
217 base::WeakPtrFactory<MTPDeviceDelegateImplWin> weak_ptr_factory_; 217 base::WeakPtrFactory<MTPDeviceDelegateImplWin> weak_ptr_factory_;
218 218
219 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplWin); 219 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplWin);
220 }; 220 };
221 221
222 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ 222 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698