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

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

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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/chromeos/drive/file_system/get_file_for_saving_operatio n.h" 5 #include "chrome/browser/chromeos/drive/file_system/get_file_for_saving_operatio n.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 "chrome/browser/chromeos/drive/file_cache.h" 10 #include "chrome/browser/chromeos/drive/file_cache.h"
11 #include "chrome/browser/chromeos/drive/file_system/create_file_operation.h" 11 #include "chrome/browser/chromeos/drive/file_system/create_file_operation.h"
12 #include "chrome/browser/chromeos/drive/file_system/download_operation.h" 12 #include "chrome/browser/chromeos/drive/file_system/download_operation.h"
13 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" 13 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h"
14 #include "chrome/browser/chromeos/drive/file_write_watcher.h" 14 #include "chrome/browser/chromeos/drive/file_write_watcher.h"
15 #include "chrome/browser/chromeos/drive/job_scheduler.h" 15 #include "chrome/browser/chromeos/drive/job_scheduler.h"
16 #include "chrome/browser/drive/event_logger.h" 16 #include "components/drive/event_logger.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 18
19 namespace drive { 19 namespace drive {
20 namespace file_system { 20 namespace file_system {
21 21
22 namespace { 22 namespace {
23 23
24 FileError OpenCacheFileForWrite( 24 FileError OpenCacheFileForWrite(
25 internal::ResourceMetadata* metadata, 25 internal::ResourceMetadata* metadata,
26 internal::FileCache* cache, 26 internal::FileCache* cache,
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 blocking_task_runner_->PostTask( 198 blocking_task_runner_->PostTask(
199 FROM_HERE, 199 FROM_HERE,
200 base::Bind(base::IgnoreResult( 200 base::Bind(base::IgnoreResult(
201 base::Bind(&internal::FileCache::FreeDiskSpaceIfNeededFor, 201 base::Bind(&internal::FileCache::FreeDiskSpaceIfNeededFor,
202 base::Unretained(cache_), 202 base::Unretained(cache_),
203 0)))); 203 0))));
204 } 204 }
205 205
206 } // namespace file_system 206 } // namespace file_system
207 } // namespace drive 207 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698