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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 const GURL& base_download_url, | 59 const GURL& base_download_url, |
60 const GURL& wapi_base_url, | 60 const GURL& wapi_base_url, |
61 const std::string& custom_user_agent); | 61 const std::string& custom_user_agent); |
62 virtual ~DriveAPIService(); | 62 virtual ~DriveAPIService(); |
63 | 63 |
64 // DriveServiceInterface Overrides | 64 // DriveServiceInterface Overrides |
65 virtual void Initialize(const std::string& account_id) OVERRIDE; | 65 virtual void Initialize(const std::string& account_id) OVERRIDE; |
66 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; | 66 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; |
67 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; | 67 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; |
68 virtual bool CanSendRequest() const OVERRIDE; | 68 virtual bool CanSendRequest() const OVERRIDE; |
69 virtual ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE; | |
70 virtual bool HasAccessToken() const OVERRIDE; | 69 virtual bool HasAccessToken() const OVERRIDE; |
71 virtual void RequestAccessToken( | 70 virtual void RequestAccessToken( |
72 const google_apis::AuthStatusCallback& callback) OVERRIDE; | 71 const google_apis::AuthStatusCallback& callback) OVERRIDE; |
73 virtual bool HasRefreshToken() const OVERRIDE; | 72 virtual bool HasRefreshToken() const OVERRIDE; |
74 virtual void ClearAccessToken() OVERRIDE; | 73 virtual void ClearAccessToken() OVERRIDE; |
75 virtual void ClearRefreshToken() OVERRIDE; | 74 virtual void ClearRefreshToken() OVERRIDE; |
76 virtual std::string GetRootResourceId() const OVERRIDE; | 75 virtual std::string GetRootResourceId() const OVERRIDE; |
77 virtual google_apis::CancelCallback GetAllFileList( | 76 virtual google_apis::CancelCallback GetAllFileList( |
78 const google_apis::FileListCallback& callback) OVERRIDE; | 77 const google_apis::FileListCallback& callback) OVERRIDE; |
79 virtual google_apis::CancelCallback GetFileListInDirectory( | 78 virtual google_apis::CancelCallback GetFileListInDirectory( |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 google_apis::DriveApiUrlGenerator url_generator_; | 199 google_apis::DriveApiUrlGenerator url_generator_; |
201 google_apis::GDataWapiUrlGenerator wapi_url_generator_; | 200 google_apis::GDataWapiUrlGenerator wapi_url_generator_; |
202 const std::string custom_user_agent_; | 201 const std::string custom_user_agent_; |
203 | 202 |
204 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); | 203 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); |
205 }; | 204 }; |
206 | 205 |
207 } // namespace drive | 206 } // namespace drive |
208 | 207 |
209 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ | 208 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ |
OLD | NEW |