| 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/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 net::URLRequestContextGetter* url_request_context_getter, | 41 net::URLRequestContextGetter* url_request_context_getter, |
| 42 const GURL& base_url, | 42 const GURL& base_url, |
| 43 const std::string& custom_user_agent); | 43 const std::string& custom_user_agent); |
| 44 virtual ~DriveAPIService(); | 44 virtual ~DriveAPIService(); |
| 45 | 45 |
| 46 // DriveServiceInterface Overrides | 46 // DriveServiceInterface Overrides |
| 47 virtual void Initialize(Profile* profile) OVERRIDE; | 47 virtual void Initialize(Profile* profile) OVERRIDE; |
| 48 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; | 48 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; |
| 49 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; | 49 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; |
| 50 virtual bool CanSendRequest() const OVERRIDE; | 50 virtual bool CanSendRequest() const OVERRIDE; |
| 51 virtual void CancelAll() OVERRIDE; | |
| 52 virtual bool CancelForFilePath(const base::FilePath& file_path) OVERRIDE; | |
| 53 virtual std::string CanonicalizeResourceId( | 51 virtual std::string CanonicalizeResourceId( |
| 54 const std::string& resource_id) const OVERRIDE; | 52 const std::string& resource_id) const OVERRIDE; |
| 55 virtual bool HasAccessToken() const OVERRIDE; | 53 virtual bool HasAccessToken() const OVERRIDE; |
| 56 virtual bool HasRefreshToken() const OVERRIDE; | 54 virtual bool HasRefreshToken() const OVERRIDE; |
| 57 virtual void ClearAccessToken() OVERRIDE; | 55 virtual void ClearAccessToken() OVERRIDE; |
| 58 virtual void ClearRefreshToken() OVERRIDE; | 56 virtual void ClearRefreshToken() OVERRIDE; |
| 59 virtual std::string GetRootResourceId() const OVERRIDE; | 57 virtual std::string GetRootResourceId() const OVERRIDE; |
| 60 virtual CancelCallback GetAllResourceList( | 58 virtual CancelCallback GetAllResourceList( |
| 61 const GetResourceListCallback& callback) OVERRIDE; | 59 const GetResourceListCallback& callback) OVERRIDE; |
| 62 virtual CancelCallback GetResourceListInDirectory( | 60 virtual CancelCallback GetResourceListInDirectory( |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 ObserverList<DriveServiceObserver> observers_; | 165 ObserverList<DriveServiceObserver> observers_; |
| 168 DriveApiUrlGenerator url_generator_; | 166 DriveApiUrlGenerator url_generator_; |
| 169 const std::string custom_user_agent_; | 167 const std::string custom_user_agent_; |
| 170 | 168 |
| 171 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); | 169 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); |
| 172 }; | 170 }; |
| 173 | 171 |
| 174 } // namespace google_apis | 172 } // namespace google_apis |
| 175 | 173 |
| 176 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ | 174 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ |
| OLD | NEW |