Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: chrome/browser/chromeos/drive/drive_protocol_handler.h

Issue 11785018: drive: Add Profile* as a member of DriveProtocolHandler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add IsValidProfile check in DriveProtocolHandler. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "net/url_request/url_request_job_factory.h" 8 #include "net/url_request/url_request_job_factory.h"
9 9
10 class Profile;
hashimoto 2013/01/07 08:22:51 No need to have this now.
Haruki Sato 2013/01/07 08:54:49 Done. Thanks.
11
10 namespace drive { 12 namespace drive {
11 13
12 class DriveProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler { 14 class DriveProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler {
13 public: 15 public:
14 DriveProtocolHandler(); 16 explicit DriveProtocolHandler(void* profile_id);
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 // The profile for processing Drive accesses. Should not be NULL.
24 void* profile_id_;
20 }; 25 };
21 26
22 } // namespace drive 27 } // namespace drive
23 28
24 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_PROTOCOL_HANDLER_H_ 29 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_PROTOCOL_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698