Chromium Code Reviews| Index: chrome/browser/chromeos/drive/drive_protocol_handler.h |
| diff --git a/chrome/browser/chromeos/drive/drive_protocol_handler.h b/chrome/browser/chromeos/drive/drive_protocol_handler.h |
| index 4fed4747e2824c0b74d3466323544e8718db0b48..48494252657ac0912db0dc8cf96a77b46bcf5c18 100644 |
| --- a/chrome/browser/chromeos/drive/drive_protocol_handler.h |
| +++ b/chrome/browser/chromeos/drive/drive_protocol_handler.h |
| @@ -5,6 +5,7 @@ |
| #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_PROTOCOL_HANDLER_H_ |
| #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_PROTOCOL_HANDLER_H_ |
| +#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
|
| #include "net/url_request/url_request_job_factory.h" |
| namespace drive { |
| @@ -12,11 +13,16 @@ namespace drive { |
| class DriveProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler { |
| public: |
| DriveProtocolHandler(); |
| + explicit DriveProtocolHandler(Profile* profile); |
| virtual ~DriveProtocolHandler(); |
| // Creates URLRequestJobs for drive:// URLs. |
| virtual net::URLRequestJob* MaybeCreateJob( |
| net::URLRequest* request, |
| net::NetworkDelegate* network_delegate) const OVERRIDE; |
| + |
| + // If |profile_| is NULL, the profile from ProfileManager::GetDefaultProfile() |
| + // will be used. |
| + Profile* profile_; |
| }; |
| } // namespace drive |