| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |