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..4e2fa4f8450e8e7d281c592f27d112d14d937924 100644 |
--- a/chrome/browser/chromeos/drive/drive_protocol_handler.h |
+++ b/chrome/browser/chromeos/drive/drive_protocol_handler.h |
@@ -7,16 +7,22 @@ |
#include "net/url_request/url_request_job_factory.h" |
+class Profile; |
+ |
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 |