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

Side by Side Diff: components/drive/local_file_reader.cc

Issue 1246753003: Move a subset of chrome/browser/chromeos/drive into components/drive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed incorrect reference to a GYP dependency. Created 5 years, 4 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
« no previous file with comments | « components/drive/local_file_reader.h ('k') | components/drive/local_file_reader_unittest.cc » ('j') | 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/local_file_reader.h" 5 #include "components/drive/local_file_reader.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/sequenced_task_runner.h" 9 #include "base/sequenced_task_runner.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
11 #include "net/base/io_buffer.h" 11 #include "net/base/io_buffer.h"
12 #include "net/base/net_errors.h" 12 #include "net/base/net_errors.h"
13 13
14 namespace drive { 14 namespace drive {
15 namespace util { 15 namespace util {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 void LocalFileReader::DidSeek(const net::CompletionCallback& callback, 61 void LocalFileReader::DidSeek(const net::CompletionCallback& callback,
62 int64 offset, 62 int64 offset,
63 int64 error) { 63 int64 error) {
64 callback.Run(error == offset ? net::OK : net::ERR_FAILED); 64 callback.Run(error == offset ? net::OK : net::ERR_FAILED);
65 } 65 }
66 66
67 } // namespace util 67 } // namespace util
68 } // namespace drive 68 } // namespace drive
OLDNEW
« no previous file with comments | « components/drive/local_file_reader.h ('k') | components/drive/local_file_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698