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

Side by Side Diff: chrome/browser/drive/gdata_wapi_service.h

Issue 26707004: Hold URLRequestContextGetter by scoped_refptr in Drive related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/drive/drive_api_service.cc ('k') | chrome/browser/drive/gdata_wapi_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DRIVE_GDATA_WAPI_SERVICE_H_ 5 #ifndef CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_
6 #define CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ 6 #define CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 const google_apis::GetResourceListCallback& callback) OVERRIDE; 183 const google_apis::GetResourceListCallback& callback) OVERRIDE;
184 virtual google_apis::CancelCallback GetRemainingResourceList( 184 virtual google_apis::CancelCallback GetRemainingResourceList(
185 const GURL& next_link, 185 const GURL& next_link,
186 const google_apis::GetResourceListCallback& callback) OVERRIDE; 186 const google_apis::GetResourceListCallback& callback) OVERRIDE;
187 187
188 private: 188 private:
189 // AuthService::Observer override. 189 // AuthService::Observer override.
190 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; 190 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE;
191 191
192 OAuth2TokenService* oauth2_token_service_; // Not owned. 192 OAuth2TokenService* oauth2_token_service_; // Not owned.
193 net::URLRequestContextGetter* url_request_context_getter_; // Not owned. 193 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
194 scoped_refptr<base::TaskRunner> blocking_task_runner_; 194 scoped_refptr<base::TaskRunner> blocking_task_runner_;
195 scoped_ptr<google_apis::RequestSender> sender_; 195 scoped_ptr<google_apis::RequestSender> sender_;
196 ObserverList<DriveServiceObserver> observers_; 196 ObserverList<DriveServiceObserver> observers_;
197 // Request objects should hold a copy of this, rather than a const 197 // Request objects should hold a copy of this, rather than a const
198 // reference, as they may outlive this object. 198 // reference, as they may outlive this object.
199 const google_apis::GDataWapiUrlGenerator url_generator_; 199 const google_apis::GDataWapiUrlGenerator url_generator_;
200 const std::string custom_user_agent_; 200 const std::string custom_user_agent_;
201 201
202 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); 202 DISALLOW_COPY_AND_ASSIGN(GDataWapiService);
203 }; 203 };
204 204
205 } // namespace drive 205 } // namespace drive
206 206
207 #endif // CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ 207 #endif // CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/drive/drive_api_service.cc ('k') | chrome/browser/drive/gdata_wapi_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698