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

Side by Side Diff: chrome/browser/chromeos/drive/file_system/open_file_operation.cc

Issue 137423010: drive: Support offline file creation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/chromeos/drive/file_system/open_file_operation.h" 5 #include "chrome/browser/chromeos/drive/file_system/open_file_operation.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 18 matching lines...) Expand all
29 base::SequencedTaskRunner* blocking_task_runner, 29 base::SequencedTaskRunner* blocking_task_runner,
30 OperationObserver* observer, 30 OperationObserver* observer,
31 JobScheduler* scheduler, 31 JobScheduler* scheduler,
32 internal::ResourceMetadata* metadata, 32 internal::ResourceMetadata* metadata,
33 internal::FileCache* cache, 33 internal::FileCache* cache,
34 const base::FilePath& temporary_file_directory) 34 const base::FilePath& temporary_file_directory)
35 : blocking_task_runner_(blocking_task_runner), 35 : blocking_task_runner_(blocking_task_runner),
36 observer_(observer), 36 observer_(observer),
37 cache_(cache), 37 cache_(cache),
38 create_file_operation_(new CreateFileOperation( 38 create_file_operation_(new CreateFileOperation(
39 blocking_task_runner, observer, scheduler, metadata, cache)), 39 blocking_task_runner, observer, metadata)),
40 download_operation_(new DownloadOperation( 40 download_operation_(new DownloadOperation(
41 blocking_task_runner, observer, scheduler, 41 blocking_task_runner, observer, scheduler,
42 metadata, cache, temporary_file_directory)), 42 metadata, cache, temporary_file_directory)),
43 weak_ptr_factory_(this) { 43 weak_ptr_factory_(this) {
44 } 44 }
45 45
46 OpenFileOperation::~OpenFileOperation() { 46 OpenFileOperation::~OpenFileOperation() {
47 } 47 }
48 48
49 void OpenFileOperation::OpenFile(const base::FilePath& file_path, 49 void OpenFileOperation::OpenFile(const base::FilePath& file_path,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 FROM_HERE, 178 FROM_HERE,
179 base::Bind(base::IgnoreResult( 179 base::Bind(base::IgnoreResult(
180 base::Bind(&internal::FileCache::FreeDiskSpaceIfNeededFor, 180 base::Bind(&internal::FileCache::FreeDiskSpaceIfNeededFor,
181 base::Unretained(cache_), 181 base::Unretained(cache_),
182 0)))); 182 0))));
183 } 183 }
184 } 184 }
185 185
186 } // namespace file_system 186 } // namespace file_system
187 } // namespace drive 187 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698