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

Side by Side Diff: chrome/browser/chromeos/drive/webkit_file_stream_writer_impl.cc

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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
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/webkit_file_stream_writer_impl.h" 5 #include "chrome/browser/chromeos/drive/webkit_file_stream_writer_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "chrome/browser/chromeos/drive/file_system_util.h" 9 #include "chrome/browser/chromeos/drive/file_system_util.h"
10 #include "chrome/browser/chromeos/drive/fileapi_worker.h" 10 #include "chrome/browser/chromeos/drive/fileapi_worker.h"
11 #include "chrome/browser/google_apis/task_util.h"
12 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 #include "google_apis/drive/task_util.h"
13 #include "net/base/io_buffer.h" 13 #include "net/base/io_buffer.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 #include "webkit/browser/fileapi/file_stream_writer.h" 15 #include "webkit/browser/fileapi/file_stream_writer.h"
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 18
19 namespace drive { 19 namespace drive {
20 namespace internal { 20 namespace internal {
21 namespace { 21 namespace {
22 22
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 close_callback_on_ui_thread_ = close_callback_on_ui_thread; 169 close_callback_on_ui_thread_ = close_callback_on_ui_thread;
170 local_file_writer_.reset(fileapi::FileStreamWriter::CreateForLocalFile( 170 local_file_writer_.reset(fileapi::FileStreamWriter::CreateForLocalFile(
171 file_task_runner_.get(), local_path, offset_)); 171 file_task_runner_.get(), local_path, offset_));
172 int result = local_file_writer_->Write(buf, buf_len, callback); 172 int result = local_file_writer_->Write(buf, buf_len, callback);
173 if (result != net::ERR_IO_PENDING) 173 if (result != net::ERR_IO_PENDING)
174 callback.Run(result); 174 callback.Run(result);
175 } 175 }
176 176
177 } // namespace internal 177 } // namespace internal
178 } // namespace drive 178 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698