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_CHROMEOS_DRIVE_DRIVE_API_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_API_SERVICE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_API_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_API_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
12 #include "chrome/browser/google_apis/auth_service.h" | 12 #include "chrome/browser/google_apis/auth_service.h" |
13 #include "chrome/browser/google_apis/auth_service_observer.h" | 13 #include "chrome/browser/google_apis/auth_service_observer.h" |
| 14 #include "chrome/browser/google_apis/drive_api_url_generator.h" |
14 #include "chrome/browser/google_apis/drive_service_interface.h" | 15 #include "chrome/browser/google_apis/drive_service_interface.h" |
15 | 16 |
16 class FilePath; | 17 class FilePath; |
17 class GURL; | 18 class GURL; |
18 class Profile; | 19 class Profile; |
19 | 20 |
20 namespace google_apis { | 21 namespace google_apis { |
21 class OperationRunner; | 22 class OperationRunner; |
22 } // namespace google_apis | 23 } // namespace google_apis |
23 | 24 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // DriveServiceObserver Overrides | 148 // DriveServiceObserver Overrides |
148 virtual void OnProgressUpdate( | 149 virtual void OnProgressUpdate( |
149 const google_apis::OperationProgressStatusList& list) OVERRIDE; | 150 const google_apis::OperationProgressStatusList& list) OVERRIDE; |
150 virtual void OnAuthenticationFailed( | 151 virtual void OnAuthenticationFailed( |
151 google_apis::GDataErrorCode error) OVERRIDE; | 152 google_apis::GDataErrorCode error) OVERRIDE; |
152 | 153 |
153 net::URLRequestContextGetter* url_request_context_getter_; | 154 net::URLRequestContextGetter* url_request_context_getter_; |
154 Profile* profile_; | 155 Profile* profile_; |
155 scoped_ptr<google_apis::OperationRunner> runner_; | 156 scoped_ptr<google_apis::OperationRunner> runner_; |
156 ObserverList<google_apis::DriveServiceObserver> observers_; | 157 ObserverList<google_apis::DriveServiceObserver> observers_; |
| 158 google_apis::DriveApiUrlGenerator url_generator_; |
157 const std::string custom_user_agent_; | 159 const std::string custom_user_agent_; |
158 | 160 |
159 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); | 161 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); |
160 }; | 162 }; |
161 | 163 |
162 } // namespace drive | 164 } // namespace drive |
163 | 165 |
164 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_API_SERVICE_H_ | 166 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_API_SERVICE_H_ |
OLD | NEW |