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_generator.h" | 16 #include "chrome/browser/google_apis/gdata_wapi_url_generator.h" |
17 | 17 |
18 class FilePath; | |
19 class GURL; | 18 class GURL; |
20 class Profile; | 19 class Profile; |
21 | 20 |
| 21 namespace base { |
| 22 class FilePath; |
| 23 } |
| 24 |
22 namespace net { | 25 namespace net { |
23 class URLRequestContextGetter; | 26 class URLRequestContextGetter; |
24 } // namespace net | 27 } // namespace net |
25 | 28 |
26 namespace google_apis { | 29 namespace google_apis { |
27 class AuthService; | 30 class AuthService; |
28 class OperationRunner; | 31 class OperationRunner; |
29 | 32 |
30 // This class provides documents feed service calls for WAPI (codename for | 33 // This class provides documents feed service calls for WAPI (codename for |
31 // DocumentsList API). | 34 // DocumentsList API). |
(...skipping 16 matching lines...) Expand all Loading... |
48 virtual ~GDataWapiService(); | 51 virtual ~GDataWapiService(); |
49 | 52 |
50 AuthService* auth_service_for_testing(); | 53 AuthService* auth_service_for_testing(); |
51 | 54 |
52 // DriveServiceInterface Overrides | 55 // DriveServiceInterface Overrides |
53 virtual void Initialize(Profile* profile) OVERRIDE; | 56 virtual void Initialize(Profile* profile) OVERRIDE; |
54 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; | 57 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; |
55 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; | 58 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; |
56 virtual bool CanStartOperation() const OVERRIDE; | 59 virtual bool CanStartOperation() const OVERRIDE; |
57 virtual void CancelAll() OVERRIDE; | 60 virtual void CancelAll() OVERRIDE; |
58 virtual bool CancelForFilePath(const FilePath& file_path) OVERRIDE; | 61 virtual bool CancelForFilePath(const base::FilePath& file_path) OVERRIDE; |
59 virtual OperationProgressStatusList GetProgressStatusList() const OVERRIDE; | 62 virtual OperationProgressStatusList GetProgressStatusList() const OVERRIDE; |
60 virtual bool HasAccessToken() const OVERRIDE; | 63 virtual bool HasAccessToken() const OVERRIDE; |
61 virtual bool HasRefreshToken() const OVERRIDE; | 64 virtual bool HasRefreshToken() const OVERRIDE; |
62 virtual std::string GetRootResourceId() const OVERRIDE; | 65 virtual std::string GetRootResourceId() const OVERRIDE; |
63 virtual void GetResourceList( | 66 virtual void GetResourceList( |
64 const GURL& feed_url, | 67 const GURL& feed_url, |
65 int64 start_changestamp, | 68 int64 start_changestamp, |
66 const std::string& search_query, | 69 const std::string& search_query, |
67 bool shared_with_me, | 70 bool shared_with_me, |
68 const std::string& directory_resource_id, | 71 const std::string& directory_resource_id, |
69 const GetResourceListCallback& callback) OVERRIDE; | 72 const GetResourceListCallback& callback) OVERRIDE; |
70 virtual void GetResourceEntry( | 73 virtual void GetResourceEntry( |
71 const std::string& resource_id, | 74 const std::string& resource_id, |
72 const GetResourceEntryCallback& callback) OVERRIDE; | 75 const GetResourceEntryCallback& callback) OVERRIDE; |
73 virtual void GetAccountMetadata( | 76 virtual void GetAccountMetadata( |
74 const GetAccountMetadataCallback& callback) OVERRIDE; | 77 const GetAccountMetadataCallback& callback) OVERRIDE; |
75 virtual void GetAppList(const GetAppListCallback& callback) OVERRIDE; | 78 virtual void GetAppList(const GetAppListCallback& callback) OVERRIDE; |
76 virtual void DeleteResource(const std::string& resource_id, | 79 virtual void DeleteResource(const std::string& resource_id, |
77 const EntryActionCallback& callback) OVERRIDE; | 80 const EntryActionCallback& callback) OVERRIDE; |
78 virtual void DownloadFile( | 81 virtual void DownloadFile( |
79 const FilePath& virtual_path, | 82 const base::FilePath& virtual_path, |
80 const FilePath& local_cache_path, | 83 const base::FilePath& local_cache_path, |
81 const GURL& content_url, | 84 const GURL& content_url, |
82 const DownloadActionCallback& download_action_callback, | 85 const DownloadActionCallback& download_action_callback, |
83 const GetContentCallback& get_content_callback) OVERRIDE; | 86 const GetContentCallback& get_content_callback) OVERRIDE; |
84 virtual void CopyHostedDocument( | 87 virtual void CopyHostedDocument( |
85 const std::string& resource_id, | 88 const std::string& resource_id, |
86 const std::string& new_name, | 89 const std::string& new_name, |
87 const GetResourceEntryCallback& callback) OVERRIDE; | 90 const GetResourceEntryCallback& callback) OVERRIDE; |
88 virtual void RenameResource( | 91 virtual void RenameResource( |
89 const std::string& resource_id, | 92 const std::string& resource_id, |
90 const std::string& new_name, | 93 const std::string& new_name, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // reference, as they may outlive this object. | 134 // reference, as they may outlive this object. |
132 GDataWapiUrlGenerator url_generator_; | 135 GDataWapiUrlGenerator url_generator_; |
133 const std::string custom_user_agent_; | 136 const std::string custom_user_agent_; |
134 | 137 |
135 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); | 138 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); |
136 }; | 139 }; |
137 | 140 |
138 } // namespace google_apis | 141 } // namespace google_apis |
139 | 142 |
140 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ | 143 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ |
OLD | NEW |