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_CHROMEOS_GDATA_GDATA_WAPI_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_SERVICE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_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 10 matching lines...) Expand all Loading... |
21 | 21 |
22 class OperationRunner; | 22 class OperationRunner; |
23 | 23 |
24 // This class provides documents feed service calls for WAPI (codename for | 24 // This class provides documents feed service calls for WAPI (codename for |
25 // DocumentsList API). | 25 // DocumentsList API). |
26 // Details of API call are abstracted in each operation class and this class | 26 // Details of API call are abstracted in each operation class and this class |
27 // works as a thin wrapper for the API. | 27 // works as a thin wrapper for the API. |
28 class GDataWapiService : public DriveServiceInterface { | 28 class GDataWapiService : public DriveServiceInterface { |
29 public: | 29 public: |
30 // Instance is usually created by GDataSystemServiceFactory and owned by | 30 // Instance is usually created by GDataSystemServiceFactory and owned by |
31 // GDataFileSystem. | 31 // DriveFileSystem. |
32 GDataWapiService(); | 32 GDataWapiService(); |
33 virtual ~GDataWapiService(); | 33 virtual ~GDataWapiService(); |
34 | 34 |
35 AuthService* auth_service_for_testing(); | 35 AuthService* auth_service_for_testing(); |
36 | 36 |
37 // DriveServiceInterface Overrides | 37 // DriveServiceInterface Overrides |
38 virtual void Initialize(Profile* profile) OVERRIDE; | 38 virtual void Initialize(Profile* profile) OVERRIDE; |
39 virtual OperationRegistry* operation_registry() const OVERRIDE; | 39 virtual OperationRegistry* operation_registry() const OVERRIDE; |
40 virtual void CancelAll() OVERRIDE; | 40 virtual void CancelAll() OVERRIDE; |
41 virtual void Authenticate(const AuthStatusCallback& callback) OVERRIDE; | 41 virtual void Authenticate(const AuthStatusCallback& callback) OVERRIDE; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 Profile* profile_; | 95 Profile* profile_; |
96 | 96 |
97 scoped_ptr<OperationRunner> runner_; | 97 scoped_ptr<OperationRunner> runner_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); | 99 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace gdata | 102 } // namespace gdata |
103 | 103 |
104 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_SERVICE_H_ | 104 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_SERVICE_H_ |
OLD | NEW |