Chromium Code Reviews| 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 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_PROTOCOL_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_PROTOCOL_HANDLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_PROTOCOL_HANDLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_PROTOCOL_HANDLER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/profiles/profile.h" | |
|
hashimoto
2013/01/07 05:18:45
How about replacing this include with a forward de
Haruki Sato
2013/01/07 06:24:42
Ah we need just a pointer to Profile in DriveProto
| |
| 8 #include "net/url_request/url_request_job_factory.h" | 9 #include "net/url_request/url_request_job_factory.h" |
| 9 | 10 |
| 10 namespace drive { | 11 namespace drive { |
| 11 | 12 |
| 12 class DriveProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler { | 13 class DriveProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler { |
| 13 public: | 14 public: |
| 14 DriveProtocolHandler(); | 15 DriveProtocolHandler(); |
| 16 explicit DriveProtocolHandler(Profile* profile); | |
| 15 virtual ~DriveProtocolHandler(); | 17 virtual ~DriveProtocolHandler(); |
| 16 // Creates URLRequestJobs for drive:// URLs. | 18 // Creates URLRequestJobs for drive:// URLs. |
| 17 virtual net::URLRequestJob* MaybeCreateJob( | 19 virtual net::URLRequestJob* MaybeCreateJob( |
| 18 net::URLRequest* request, | 20 net::URLRequest* request, |
| 19 net::NetworkDelegate* network_delegate) const OVERRIDE; | 21 net::NetworkDelegate* network_delegate) const OVERRIDE; |
| 22 | |
| 23 // If |profile_| is NULL, the profile from ProfileManager::GetDefaultProfile() | |
| 24 // will be used. | |
| 25 Profile* profile_; | |
| 20 }; | 26 }; |
| 21 | 27 |
| 22 } // namespace drive | 28 } // namespace drive |
| 23 | 29 |
| 24 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_PROTOCOL_HANDLER_H_ | 30 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_PROTOCOL_HANDLER_H_ |
| OLD | NEW |