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

Side by Side Diff: chrome/browser/chromeos/drive/drive_file_stream_reader.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/drive_file_stream_reader.h" 5 #include "chrome/browser/chromeos/drive/drive_file_stream_reader.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstring> 8 #include <cstring>
9 9
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/sequenced_task_runner.h" 12 #include "base/sequenced_task_runner.h"
13 #include "chrome/browser/chromeos/drive/drive.pb.h" 13 #include "chrome/browser/chromeos/drive/drive.pb.h"
14 #include "chrome/browser/chromeos/drive/file_system_interface.h" 14 #include "chrome/browser/chromeos/drive/file_system_interface.h"
15 #include "chrome/browser/chromeos/drive/local_file_reader.h" 15 #include "chrome/browser/chromeos/drive/local_file_reader.h"
16 #include "chrome/browser/google_apis/task_util.h"
17 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 #include "google_apis/drive/task_util.h"
18 #include "net/base/io_buffer.h" 18 #include "net/base/io_buffer.h"
19 #include "net/base/net_errors.h" 19 #include "net/base/net_errors.h"
20 #include "net/http/http_byte_range.h" 20 #include "net/http/http_byte_range.h"
21 21
22 using content::BrowserThread; 22 using content::BrowserThread;
23 23
24 namespace drive { 24 namespace drive {
25 namespace { 25 namespace {
26 26
27 // Converts FileError code to net::Error code. 27 // Converts FileError code to net::Error code.
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 // Note: due to the same reason, LocalReaderProxy::OnCompleted may 442 // Note: due to the same reason, LocalReaderProxy::OnCompleted may
443 // or may not be called. This is timing issue, and it is difficult to avoid 443 // or may not be called. This is timing issue, and it is difficult to avoid
444 // unfortunately. 444 // unfortunately.
445 if (error != FILE_ERROR_OK) { 445 if (error != FILE_ERROR_OK) {
446 callback.Run(FileErrorToNetError(error), scoped_ptr<ResourceEntry>()); 446 callback.Run(FileErrorToNetError(error), scoped_ptr<ResourceEntry>());
447 } 447 }
448 } 448 }
449 } 449 }
450 450
451 } // namespace drive 451 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698