OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/chromeos/drive/drive_protocol_handler.h" | |
6 | |
7 #include "base/logging.h" | |
8 #include "chrome/browser/chromeos/drive/drive_url_request_job.h" | |
9 #include "net/url_request/url_request.h" | |
10 #include "url/gurl.h" | |
11 | |
12 namespace drive { | |
13 | |
14 DriveProtocolHandler::DriveProtocolHandler(void* profile_id) | |
15 : profile_id_(profile_id) { | |
16 } | |
17 | |
18 DriveProtocolHandler::~DriveProtocolHandler() { | |
19 } | |
20 | |
21 net::URLRequestJob* DriveProtocolHandler::MaybeCreateJob( | |
22 net::URLRequest* request, net::NetworkDelegate* network_delegate) const { | |
23 DVLOG(1) << "Handling url: " << request->url().spec(); | |
24 return new DriveURLRequestJob(profile_id_, request, network_delegate); | |
25 } | |
26 | |
27 } // namespace drive | |
OLD | NEW |