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_DRIVE_API_OPERATIONS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 virtual ~GetApplistOperation(); | 40 virtual ~GetApplistOperation(); |
41 | 41 |
42 protected: | 42 protected: |
43 // Overridden from GetDataOperation. | 43 // Overridden from GetDataOperation. |
44 virtual GURL GetURL() const OVERRIDE; | 44 virtual GURL GetURL() const OVERRIDE; |
45 | 45 |
46 private: | 46 private: |
47 DISALLOW_COPY_AND_ASSIGN(GetApplistOperation); | 47 DISALLOW_COPY_AND_ASSIGN(GetApplistOperation); |
48 }; | 48 }; |
49 | 49 |
| 50 //============================ GetChangelistOperation ========================== |
| 51 |
| 52 // This class performs the operation for fetching changelist. |
| 53 class GetChangelistOperation : public GetDataOperation { |
| 54 public: |
| 55 // |start_changestamp| specifies the starting point of change list or 0 if |
| 56 // all changes are necessary. |
| 57 // |url| specifies URL for document feed fetching operation. If empty URL is |
| 58 // passed, the default URL is used and returns the first page of the result. |
| 59 // When non-first page result is requested, |url| should be specified. |
| 60 GetChangelistOperation(GDataOperationRegistry* registry, |
| 61 const GURL& url, |
| 62 int64 start_changestamp, |
| 63 const GetDataCallback& callback); |
| 64 virtual ~GetChangelistOperation(); |
| 65 |
| 66 protected: |
| 67 // Overridden from GetDataOperation. |
| 68 virtual GURL GetURL() const OVERRIDE; |
| 69 |
| 70 private: |
| 71 GURL url_; |
| 72 int64 start_changestamp_; |
| 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(GetChangelistOperation); |
| 75 }; |
| 76 |
50 } // namespace gdata | 77 } // namespace gdata |
51 | 78 |
52 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ | 79 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ |
OLD | NEW |