| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_protocol_handler.h" | 5 #include "chrome/browser/chromeos/drive/drive_protocol_handler.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/threading/sequenced_worker_pool.h" | 8 #include "base/threading/sequenced_worker_pool.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/chromeos/drive/drive_integration_service.h" | 10 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 blocking_pool->GetSequencedTaskRunner(blocking_pool->GetSequenceToken()); | 45 blocking_pool->GetSequencedTaskRunner(blocking_pool->GetSequenceToken()); |
| 46 } | 46 } |
| 47 | 47 |
| 48 DriveProtocolHandler::~DriveProtocolHandler() { | 48 DriveProtocolHandler::~DriveProtocolHandler() { |
| 49 } | 49 } |
| 50 | 50 |
| 51 net::URLRequestJob* DriveProtocolHandler::MaybeCreateJob( | 51 net::URLRequestJob* DriveProtocolHandler::MaybeCreateJob( |
| 52 net::URLRequest* request, net::NetworkDelegate* network_delegate) const { | 52 net::URLRequest* request, net::NetworkDelegate* network_delegate) const { |
| 53 DVLOG(1) << "Handling url: " << request->url().spec(); | 53 DVLOG(1) << "Handling url: " << request->url().spec(); |
| 54 return new DriveURLRequestJob(base::Bind(&GetFileSystem, profile_id_), | 54 return new DriveURLRequestJob(base::Bind(&GetFileSystem, profile_id_), |
| 55 blocking_task_runner_, | 55 blocking_task_runner_.get(), |
| 56 request, | 56 request, |
| 57 network_delegate); | 57 network_delegate); |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace drive | 60 } // namespace drive |
| OLD | NEW |