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

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

Issue 14755002: drive: Drop "Drive" from FakeDriveFileSystem and MockDriveFileSystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some more cleanup 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_url_request_job.h" 5 #include "chrome/browser/chromeos/drive/drive_url_request_job.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 26 matching lines...) Expand all
37 for (size_t i = 0; i < arraysize(kMimeTypeReplacements); i++) { 37 for (size_t i = 0; i < arraysize(kMimeTypeReplacements); i++) {
38 if (type == kMimeTypeReplacements[i].original_type) 38 if (type == kMimeTypeReplacements[i].original_type)
39 return kMimeTypeReplacements[i].new_type; 39 return kMimeTypeReplacements[i].new_type;
40 } 40 }
41 return type; 41 return type;
42 } 42 }
43 43
44 } // namespace 44 } // namespace
45 45
46 DriveURLRequestJob::DriveURLRequestJob( 46 DriveURLRequestJob::DriveURLRequestJob(
47 const DriveFileSystemGetter& file_system_getter, 47 const FileSystemGetter& file_system_getter,
48 net::URLRequest* request, 48 net::URLRequest* request,
49 net::NetworkDelegate* network_delegate) 49 net::NetworkDelegate* network_delegate)
50 : net::URLRequestJob(request, network_delegate), 50 : net::URLRequestJob(request, network_delegate),
51 file_system_getter_(file_system_getter), 51 file_system_getter_(file_system_getter),
52 weak_ptr_factory_(this) { 52 weak_ptr_factory_(this) {
53 } 53 }
54 54
55 void DriveURLRequestJob::Start() { 55 void DriveURLRequestJob::Start() {
56 DVLOG(1) << "Starting request"; 56 DVLOG(1) << "Starting request";
57 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 57 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 DCHECK_NE(read_result, net::ERR_IO_PENDING); 178 DCHECK_NE(read_result, net::ERR_IO_PENDING);
179 NotifyDone(net::URLRequestStatus(net::URLRequestStatus::FAILED, 179 NotifyDone(net::URLRequestStatus(net::URLRequestStatus::FAILED,
180 read_result)); 180 read_result));
181 } 181 }
182 182
183 SetStatus(net::URLRequestStatus()); // Clear the IO_PENDING status. 183 SetStatus(net::URLRequestStatus()); // Clear the IO_PENDING status.
184 NotifyReadComplete(read_result); 184 NotifyReadComplete(read_result);
185 } 185 }
186 186
187 } // namespace drive 187 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_url_request_job.h ('k') | chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698