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

Side by Side Diff: trunk/src/chrome/browser/chromeos/drive/drive_file_stream_reader.cc

Issue 14985007: Revert 198844 "Move sequenced_task_runner to base/task" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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
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/task/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_reader.h" 14 #include "chrome/browser/chromeos/drive/file_reader.h"
15 #include "chrome/browser/chromeos/drive/file_system_interface.h" 15 #include "chrome/browser/chromeos/drive/file_system_interface.h"
16 #include "chrome/browser/google_apis/task_util.h" 16 #include "chrome/browser/google_apis/task_util.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.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 20
21 using content::BrowserThread; 21 using content::BrowserThread;
22 22
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 // Note: due to the same reason, LocalReaderProxy::OnCompleted may 430 // Note: due to the same reason, LocalReaderProxy::OnCompleted may
431 // or may not be called. This is timing issue, and it is difficult to avoid 431 // or may not be called. This is timing issue, and it is difficult to avoid
432 // unfortunately. 432 // unfortunately.
433 if (error != FILE_ERROR_OK) { 433 if (error != FILE_ERROR_OK) {
434 callback.Run(FileErrorToNetError(error), scoped_ptr<ResourceEntry>()); 434 callback.Run(FileErrorToNetError(error), scoped_ptr<ResourceEntry>());
435 } 435 }
436 } 436 }
437 } 437 }
438 438
439 } // namespace drive 439 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698