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

Side by Side Diff: chrome/browser/drive/drive_api_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 | « no previous file | chrome/browser/drive/drive_api_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_DRIVE_API_SERVICE_H_ 5 #ifndef CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_
6 #define CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ 6 #define CHROME_BROWSER_DRIVE_DRIVE_API_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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 const google_apis::GetResourceListCallback& callback) OVERRIDE; 187 const google_apis::GetResourceListCallback& callback) OVERRIDE;
188 virtual google_apis::CancelCallback GetRemainingResourceList( 188 virtual google_apis::CancelCallback GetRemainingResourceList(
189 const GURL& next_link, 189 const GURL& next_link,
190 const google_apis::GetResourceListCallback& callback) OVERRIDE; 190 const google_apis::GetResourceListCallback& callback) OVERRIDE;
191 191
192 private: 192 private:
193 // AuthServiceObserver override. 193 // AuthServiceObserver override.
194 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; 194 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE;
195 195
196 OAuth2TokenService* oauth2_token_service_; 196 OAuth2TokenService* oauth2_token_service_;
197 net::URLRequestContextGetter* url_request_context_getter_; 197 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
198 scoped_refptr<base::TaskRunner> blocking_task_runner_; 198 scoped_refptr<base::TaskRunner> blocking_task_runner_;
199 scoped_ptr<google_apis::RequestSender> sender_; 199 scoped_ptr<google_apis::RequestSender> sender_;
200 ObserverList<DriveServiceObserver> observers_; 200 ObserverList<DriveServiceObserver> observers_;
201 google_apis::DriveApiUrlGenerator url_generator_; 201 google_apis::DriveApiUrlGenerator url_generator_;
202 google_apis::GDataWapiUrlGenerator wapi_url_generator_; 202 google_apis::GDataWapiUrlGenerator wapi_url_generator_;
203 const std::string custom_user_agent_; 203 const std::string custom_user_agent_;
204 204
205 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); 205 DISALLOW_COPY_AND_ASSIGN(DriveAPIService);
206 }; 206 };
207 207
208 } // namespace drive 208 } // namespace drive
209 209
210 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ 210 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/drive/drive_api_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698