| 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" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "chrome/browser/chromeos/gdata/auth_service.h" | 12 #include "chrome/browser/chromeos/gdata/auth_service.h" |
| 13 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" | 13 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" |
| 14 #include "chrome/browser/chromeos/gdata/gdata_operations.h" | 14 #include "chrome/browser/chromeos/gdata/gdata_operations.h" |
| 15 | 15 |
| 16 class FilePath; | 16 class FilePath; |
| 17 class GURL; | 17 class GURL; |
| 18 class Profile; | 18 class Profile; |
| 19 | 19 |
| 20 namespace gdata { | 20 namespace gdata { |
| 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 DriveSystemServiceFactory and owned by |
| 31 // DriveFileSystem. | 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; |
| (...skipping 54 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 |