| 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_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ |
| 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_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/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/observer_list.h" | 12 #include "base/observer_list.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_service_interface.h" | 14 #include "chrome/browser/google_apis/drive_service_interface.h" |
| 15 #include "chrome/browser/google_apis/gdata_wapi_operations.h" | 15 #include "chrome/browser/google_apis/gdata_wapi_operations.h" |
| 16 #include "chrome/browser/google_apis/gdata_wapi_url_util.h" |
| 16 | 17 |
| 17 class FilePath; | 18 class FilePath; |
| 18 class GURL; | 19 class GURL; |
| 19 class Profile; | 20 class Profile; |
| 20 | 21 |
| 21 namespace google_apis { | 22 namespace google_apis { |
| 22 class AuthService; | 23 class AuthService; |
| 23 class OperationRunner; | 24 class OperationRunner; |
| 24 | 25 |
| 25 // This class provides documents feed service calls for WAPI (codename for | 26 // This class provides documents feed service calls for WAPI (codename for |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; | 112 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; |
| 112 | 113 |
| 113 // DriveServiceObserver Overrides | 114 // DriveServiceObserver Overrides |
| 114 virtual void OnProgressUpdate( | 115 virtual void OnProgressUpdate( |
| 115 const OperationProgressStatusList& list) OVERRIDE; | 116 const OperationProgressStatusList& list) OVERRIDE; |
| 116 virtual void OnAuthenticationFailed( | 117 virtual void OnAuthenticationFailed( |
| 117 GDataErrorCode error) OVERRIDE; | 118 GDataErrorCode error) OVERRIDE; |
| 118 | 119 |
| 119 scoped_ptr<OperationRunner> runner_; | 120 scoped_ptr<OperationRunner> runner_; |
| 120 ObserverList<DriveServiceObserver> observers_; | 121 ObserverList<DriveServiceObserver> observers_; |
| 122 // Operation objects should hold a copy of this, rather than a const |
| 123 // reference, as they may outlive this object. |
| 124 GDataWapiUrlGenerator url_generator_; |
| 121 | 125 |
| 122 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); | 126 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); |
| 123 }; | 127 }; |
| 124 | 128 |
| 125 } // namespace google_apis | 129 } // namespace google_apis |
| 126 | 130 |
| 127 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ | 131 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ |
| OLD | NEW |