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

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

Issue 810403004: [Storage] Blob Storage Refactoring pt 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed copyright Created 5 years, 11 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/async_file_util.h" 5 #include "chrome/browser/chromeos/drive/fileapi/async_file_util.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
11 #include "chrome/browser/chromeos/drive/drive_integration_service.h" 11 #include "chrome/browser/chromeos/drive/drive_integration_service.h"
12 #include "chrome/browser/chromeos/drive/file_system_util.h" 12 #include "chrome/browser/chromeos/drive/file_system_util.h"
13 #include "chrome/browser/chromeos/drive/fileapi/fileapi_worker.h" 13 #include "chrome/browser/chromeos/drive/fileapi/fileapi_worker.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 #include "google_apis/drive/task_util.h" 15 #include "google_apis/drive/task_util.h"
16 #include "storage/browser/blob/shareable_file_reference.h"
16 #include "storage/browser/fileapi/file_system_operation_context.h" 17 #include "storage/browser/fileapi/file_system_operation_context.h"
17 #include "storage/browser/fileapi/file_system_url.h" 18 #include "storage/browser/fileapi/file_system_url.h"
18 #include "storage/common/blob/shareable_file_reference.h"
19 19
20 using content::BrowserThread; 20 using content::BrowserThread;
21 21
22 namespace google_apis { 22 namespace google_apis {
23 namespace internal { 23 namespace internal {
24 24
25 // Partial specialization of helper template from google_apis/drive/task_util.h 25 // Partial specialization of helper template from google_apis/drive/task_util.h
26 // to enable google_apis::CreateRelayCallback to work with CreateOrOpenCallback. 26 // to enable google_apis::CreateRelayCallback to work with CreateOrOpenCallback.
27 template<typename T2> 27 template<typename T2>
28 struct ComposedCallback<void(base::File, T2)> { 28 struct ComposedCallback<void(base::File, T2)> {
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 base::Bind(&RunCreateSnapshotFileCallback, callback))), 441 base::Bind(&RunCreateSnapshotFileCallback, callback))),
442 base::Bind(callback, 442 base::Bind(callback,
443 base::File::FILE_ERROR_FAILED, 443 base::File::FILE_ERROR_FAILED,
444 base::File::Info(), 444 base::File::Info(),
445 base::FilePath(), 445 base::FilePath(),
446 scoped_refptr<storage::ShareableFileReference>())); 446 scoped_refptr<storage::ShareableFileReference>()));
447 } 447 }
448 448
449 } // namespace internal 449 } // namespace internal
450 } // namespace drive 450 } // namespace drive
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/fileapi/fileapi_worker.h » ('j') | storage/browser/blob/blob_storage_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698