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

Side by Side Diff: chrome/browser/media_galleries/fileapi/device_media_async_file_util.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) 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 <stdint.h>
9
8 #include "base/files/file.h" 10 #include "base/files/file.h"
9 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
13 #include "storage/browser/blob/shareable_file_reference.h" 16 #include "storage/browser/blob/shareable_file_reference.h"
14 #include "storage/browser/fileapi/async_file_util.h" 17 #include "storage/browser/fileapi/async_file_util.h"
15 #include "storage/browser/fileapi/watcher_manager.h" 18 #include "storage/browser/fileapi/watcher_manager.h"
16 19
17 namespace storage { 20 namespace storage {
18 class FileSystemOperationContext; 21 class FileSystemOperationContext;
19 class FileSystemURL; 22 class FileSystemURL;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void ReadDirectory(scoped_ptr<storage::FileSystemOperationContext> context, 62 void ReadDirectory(scoped_ptr<storage::FileSystemOperationContext> context,
60 const storage::FileSystemURL& url, 63 const storage::FileSystemURL& url,
61 const ReadDirectoryCallback& callback) override; 64 const ReadDirectoryCallback& callback) override;
62 void Touch(scoped_ptr<storage::FileSystemOperationContext> context, 65 void Touch(scoped_ptr<storage::FileSystemOperationContext> context,
63 const storage::FileSystemURL& url, 66 const storage::FileSystemURL& url,
64 const base::Time& last_access_time, 67 const base::Time& last_access_time,
65 const base::Time& last_modified_time, 68 const base::Time& last_modified_time,
66 const StatusCallback& callback) override; 69 const StatusCallback& callback) override;
67 void Truncate(scoped_ptr<storage::FileSystemOperationContext> context, 70 void Truncate(scoped_ptr<storage::FileSystemOperationContext> context,
68 const storage::FileSystemURL& url, 71 const storage::FileSystemURL& url,
69 int64 length, 72 int64_t length,
70 const StatusCallback& callback) override; 73 const StatusCallback& callback) override;
71 void CopyFileLocal(scoped_ptr<storage::FileSystemOperationContext> context, 74 void CopyFileLocal(scoped_ptr<storage::FileSystemOperationContext> context,
72 const storage::FileSystemURL& src_url, 75 const storage::FileSystemURL& src_url,
73 const storage::FileSystemURL& dest_url, 76 const storage::FileSystemURL& dest_url,
74 CopyOrMoveOption option, 77 CopyOrMoveOption option,
75 const CopyFileProgressCallback& progress_callback, 78 const CopyFileProgressCallback& progress_callback,
76 const StatusCallback& callback) override; 79 const StatusCallback& callback) override;
77 void MoveFileLocal(scoped_ptr<storage::FileSystemOperationContext> context, 80 void MoveFileLocal(scoped_ptr<storage::FileSystemOperationContext> context,
78 const storage::FileSystemURL& src_url, 81 const storage::FileSystemURL& src_url,
79 const storage::FileSystemURL& dest_url, 82 const storage::FileSystemURL& dest_url,
(...skipping 19 matching lines...) Expand all
99 const storage::FileSystemURL& url, 102 const storage::FileSystemURL& url,
100 const CreateSnapshotFileCallback& callback) override; 103 const CreateSnapshotFileCallback& callback) override;
101 104
102 // This method is called when existing Blobs are read. 105 // This method is called when existing Blobs are read.
103 // |expected_modification_time| indicates the expected snapshot state of the 106 // |expected_modification_time| indicates the expected snapshot state of the
104 // underlying storage. The returned FileStreamReader must return an error 107 // underlying storage. The returned FileStreamReader must return an error
105 // when the state of the underlying storage changes. Any errors associated 108 // when the state of the underlying storage changes. Any errors associated
106 // with reading this file are returned by the FileStreamReader itself. 109 // with reading this file are returned by the FileStreamReader itself.
107 virtual scoped_ptr<storage::FileStreamReader> GetFileStreamReader( 110 virtual scoped_ptr<storage::FileStreamReader> GetFileStreamReader(
108 const storage::FileSystemURL& url, 111 const storage::FileSystemURL& url,
109 int64 offset, 112 int64_t offset,
110 const base::Time& expected_modification_time, 113 const base::Time& expected_modification_time,
111 storage::FileSystemContext* context); 114 storage::FileSystemContext* context);
112 115
113 // Adds watcher to |url|. 116 // Adds watcher to |url|.
114 void AddWatcher(const storage::FileSystemURL& url, 117 void AddWatcher(const storage::FileSystemURL& url,
115 bool recursive, 118 bool recursive,
116 const storage::WatcherManager::StatusCallback& callback, 119 const storage::WatcherManager::StatusCallback& callback,
117 const storage::WatcherManager::NotificationCallback& 120 const storage::WatcherManager::NotificationCallback&
118 notification_callback); 121 notification_callback);
119 122
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 189
187 scoped_refptr<MediaPathFilterWrapper> media_path_filter_wrapper_; 190 scoped_refptr<MediaPathFilterWrapper> media_path_filter_wrapper_;
188 191
189 // For callbacks that may run after destruction. 192 // For callbacks that may run after destruction.
190 base::WeakPtrFactory<DeviceMediaAsyncFileUtil> weak_ptr_factory_; 193 base::WeakPtrFactory<DeviceMediaAsyncFileUtil> weak_ptr_factory_;
191 194
192 DISALLOW_COPY_AND_ASSIGN(DeviceMediaAsyncFileUtil); 195 DISALLOW_COPY_AND_ASSIGN(DeviceMediaAsyncFileUtil);
193 }; 196 };
194 197
195 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H _ 198 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698