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

Side by Side Diff: chrome/browser/sync_file_system/local/sync_file_system_backend.cc

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" 5 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 } 182 }
183 183
184 bool SyncFileSystemBackend::HasInplaceCopyImplementation( 184 bool SyncFileSystemBackend::HasInplaceCopyImplementation(
185 storage::FileSystemType type) const { 185 storage::FileSystemType type) const {
186 return false; 186 return false;
187 } 187 }
188 188
189 scoped_ptr<storage::FileStreamReader> 189 scoped_ptr<storage::FileStreamReader>
190 SyncFileSystemBackend::CreateFileStreamReader( 190 SyncFileSystemBackend::CreateFileStreamReader(
191 const storage::FileSystemURL& url, 191 const storage::FileSystemURL& url,
192 int64 offset, 192 int64_t offset,
193 int64 max_bytes_to_read, 193 int64_t max_bytes_to_read,
194 const base::Time& expected_modification_time, 194 const base::Time& expected_modification_time,
195 storage::FileSystemContext* context) const { 195 storage::FileSystemContext* context) const {
196 DCHECK(CanHandleType(url.type())); 196 DCHECK(CanHandleType(url.type()));
197 return GetDelegate()->CreateFileStreamReader( 197 return GetDelegate()->CreateFileStreamReader(
198 url, offset, expected_modification_time, context); 198 url, offset, expected_modification_time, context);
199 } 199 }
200 200
201 scoped_ptr<storage::FileStreamWriter> 201 scoped_ptr<storage::FileStreamWriter>
202 SyncFileSystemBackend::CreateFileStreamWriter( 202 SyncFileSystemBackend::CreateFileStreamWriter(
203 const storage::FileSystemURL& url, 203 const storage::FileSystemURL& url,
204 int64 offset, 204 int64_t offset,
205 storage::FileSystemContext* context) const { 205 storage::FileSystemContext* context) const {
206 DCHECK(CanHandleType(url.type())); 206 DCHECK(CanHandleType(url.type()));
207 return GetDelegate()->CreateFileStreamWriter( 207 return GetDelegate()->CreateFileStreamWriter(
208 url, offset, context, storage::kFileSystemTypeSyncableForInternalSync); 208 url, offset, context, storage::kFileSystemTypeSyncableForInternalSync);
209 } 209 }
210 210
211 storage::FileSystemQuotaUtil* SyncFileSystemBackend::GetQuotaUtil() { 211 storage::FileSystemQuotaUtil* SyncFileSystemBackend::GetQuotaUtil() {
212 return GetDelegate(); 212 return GetDelegate();
213 } 213 }
214 214
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 SyncStatusCodeToFileError(status)); 314 SyncStatusCodeToFileError(status));
315 return; 315 return;
316 } 316 }
317 317
318 callback.Run(GetSyncableFileSystemRootURI(origin_url), 318 callback.Run(GetSyncableFileSystemRootURI(origin_url),
319 GetFileSystemName(origin_url, type), 319 GetFileSystemName(origin_url, type),
320 base::File::FILE_OK); 320 base::File::FILE_OK);
321 } 321 }
322 322
323 } // namespace sync_file_system 323 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698