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

Side by Side Diff: chrome/browser/media_galleries/fileapi/device_media_async_file_util.h

Issue 947943002: Implement CopyFileFromLocal of MTPDeviceAsyncDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix wrong function definition. Created 5 years, 9 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) 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_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_
7 7
8 #include "base/files/file.h" 8 #include "base/files/file.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // If the contents of the given directory are reported in multiple chunks, 134 // If the contents of the given directory are reported in multiple chunks,
135 // |file_list| will have only a subset of all contents (the subsets reported 135 // |file_list| will have only a subset of all contents (the subsets reported
136 // in any two calls are disjoint), and |has_more| will be true, except for 136 // in any two calls are disjoint), and |has_more| will be true, except for
137 // the last chunk. 137 // the last chunk.
138 void OnDidReadDirectory( 138 void OnDidReadDirectory(
139 base::SequencedTaskRunner* task_runner, 139 base::SequencedTaskRunner* task_runner,
140 const ReadDirectoryCallback& callback, 140 const ReadDirectoryCallback& callback,
141 const EntryList& file_list, 141 const EntryList& file_list,
142 bool has_more); 142 bool has_more);
143 143
144 // Called when CopyInForeignFile method call succeeds. |callback| is invoked
145 // to complete the CopyInForeignFile request.
146 void OnDidCopyInForeignFile(const StatusCallback& callback);
147
144 bool validate_media_files() const; 148 bool validate_media_files() const;
145 149
146 // Profile path. 150 // Profile path.
147 const base::FilePath profile_path_; 151 const base::FilePath profile_path_;
148 152
149 scoped_refptr<MediaPathFilterWrapper> media_path_filter_wrapper_; 153 scoped_refptr<MediaPathFilterWrapper> media_path_filter_wrapper_;
150 154
151 // For callbacks that may run after destruction. 155 // For callbacks that may run after destruction.
152 base::WeakPtrFactory<DeviceMediaAsyncFileUtil> weak_ptr_factory_; 156 base::WeakPtrFactory<DeviceMediaAsyncFileUtil> weak_ptr_factory_;
153 157
154 DISALLOW_COPY_AND_ASSIGN(DeviceMediaAsyncFileUtil); 158 DISALLOW_COPY_AND_ASSIGN(DeviceMediaAsyncFileUtil);
155 }; 159 };
156 160
157 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H _ 161 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698