| 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_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/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 const std::string& custom_user_agent); | 46 const std::string& custom_user_agent); |
| 47 virtual ~GDataWapiService(); | 47 virtual ~GDataWapiService(); |
| 48 | 48 |
| 49 AuthService* auth_service_for_testing(); | 49 AuthService* auth_service_for_testing(); |
| 50 | 50 |
| 51 // DriveServiceInterface Overrides | 51 // DriveServiceInterface Overrides |
| 52 virtual void Initialize(Profile* profile) OVERRIDE; | 52 virtual void Initialize(Profile* profile) OVERRIDE; |
| 53 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; | 53 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; |
| 54 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; | 54 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; |
| 55 virtual bool CanSendRequest() const OVERRIDE; | 55 virtual bool CanSendRequest() const OVERRIDE; |
| 56 virtual void CancelAll() OVERRIDE; | |
| 57 virtual bool CancelForFilePath(const base::FilePath& file_path) OVERRIDE; | |
| 58 virtual std::string CanonicalizeResourceId( | 56 virtual std::string CanonicalizeResourceId( |
| 59 const std::string& resource_id) const OVERRIDE; | 57 const std::string& resource_id) const OVERRIDE; |
| 60 virtual bool HasAccessToken() const OVERRIDE; | 58 virtual bool HasAccessToken() const OVERRIDE; |
| 61 virtual bool HasRefreshToken() const OVERRIDE; | 59 virtual bool HasRefreshToken() const OVERRIDE; |
| 62 virtual void ClearAccessToken() OVERRIDE; | 60 virtual void ClearAccessToken() OVERRIDE; |
| 63 virtual void ClearRefreshToken() OVERRIDE; | 61 virtual void ClearRefreshToken() OVERRIDE; |
| 64 virtual std::string GetRootResourceId() const OVERRIDE; | 62 virtual std::string GetRootResourceId() const OVERRIDE; |
| 65 virtual CancelCallback GetAllResourceList( | 63 virtual CancelCallback GetAllResourceList( |
| 66 const GetResourceListCallback& callback) OVERRIDE; | 64 const GetResourceListCallback& callback) OVERRIDE; |
| 67 virtual CancelCallback GetResourceListInDirectory( | 65 virtual CancelCallback GetResourceListInDirectory( |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // reference, as they may outlive this object. | 171 // reference, as they may outlive this object. |
| 174 const GDataWapiUrlGenerator url_generator_; | 172 const GDataWapiUrlGenerator url_generator_; |
| 175 const std::string custom_user_agent_; | 173 const std::string custom_user_agent_; |
| 176 | 174 |
| 177 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); | 175 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); |
| 178 }; | 176 }; |
| 179 | 177 |
| 180 } // namespace google_apis | 178 } // namespace google_apis |
| 181 | 179 |
| 182 #endif // CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ | 180 #endif // CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ |
| OLD | NEW |