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

Side by Side Diff: chrome/browser/chromeos/drive/fileapi/fileapi_worker.cc

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chromeos/drive/fileapi/fileapi_worker.h" 5 #include "chrome/browser/chromeos/drive/fileapi/fileapi_worker.h"
6 6
7 #include <stddef.h>
8
7 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
8 #include "base/logging.h" 10 #include "base/logging.h"
9 #include "base/task_runner_util.h" 11 #include "base/task_runner_util.h"
10 #include "base/thread_task_runner_handle.h" 12 #include "base/thread_task_runner_handle.h"
11 #include "base/threading/sequenced_worker_pool.h" 13 #include "base/threading/sequenced_worker_pool.h"
12 #include "chrome/browser/chromeos/drive/file_system_util.h" 14 #include "chrome/browser/chromeos/drive/file_system_util.h"
13 #include "components/drive/drive.pb.h" 15 #include "components/drive/drive.pb.h"
14 #include "components/drive/file_errors.h" 16 #include "components/drive/file_errors.h"
15 #include "components/drive/file_system_interface.h" 17 #include "components/drive/file_system_interface.h"
16 #include "components/drive/resource_entry_conversion.h" 18 #include "components/drive/resource_entry_conversion.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 bool is_exclusive, 288 bool is_exclusive,
287 const StatusCallback& callback, 289 const StatusCallback& callback,
288 FileSystemInterface* file_system) { 290 FileSystemInterface* file_system) {
289 DCHECK_CURRENTLY_ON(BrowserThread::UI); 291 DCHECK_CURRENTLY_ON(BrowserThread::UI);
290 file_system->CreateFile(file_path, is_exclusive, 292 file_system->CreateFile(file_path, is_exclusive,
291 std::string(), // no mime type; guess from file_path 293 std::string(), // no mime type; guess from file_path
292 base::Bind(&RunStatusCallbackByFileError, callback)); 294 base::Bind(&RunStatusCallbackByFileError, callback));
293 } 295 }
294 296
295 void Truncate(const base::FilePath& file_path, 297 void Truncate(const base::FilePath& file_path,
296 int64 length, 298 int64_t length,
297 const StatusCallback& callback, 299 const StatusCallback& callback,
298 FileSystemInterface* file_system) { 300 FileSystemInterface* file_system) {
299 DCHECK_CURRENTLY_ON(BrowserThread::UI); 301 DCHECK_CURRENTLY_ON(BrowserThread::UI);
300 file_system->TruncateFile( 302 file_system->TruncateFile(
301 file_path, length, 303 file_path, length,
302 base::Bind(&RunStatusCallbackByFileError, callback)); 304 base::Bind(&RunStatusCallbackByFileError, callback));
303 } 305 }
304 306
305 void CreateSnapshotFile(const base::FilePath& file_path, 307 void CreateSnapshotFile(const base::FilePath& file_path,
306 const CreateSnapshotFileCallback& callback, 308 const CreateSnapshotFileCallback& callback,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 const StatusCallback& callback, 360 const StatusCallback& callback,
359 FileSystemInterface* file_system) { 361 FileSystemInterface* file_system) {
360 DCHECK_CURRENTLY_ON(BrowserThread::UI); 362 DCHECK_CURRENTLY_ON(BrowserThread::UI);
361 file_system->TouchFile(file_path, last_access_time, last_modified_time, 363 file_system->TouchFile(file_path, last_access_time, last_modified_time,
362 base::Bind(&RunStatusCallbackByFileError, callback)); 364 base::Bind(&RunStatusCallbackByFileError, callback));
363 365
364 } 366 }
365 367
366 } // namespace fileapi_internal 368 } // namespace fileapi_internal
367 } // namespace drive 369 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698