Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Side by Side Diff: chrome/browser/chromeos/gdata/drive_api_operations.h

Issue 10836125: Add GetChangelist operation for Drive V2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/drive_api_operations.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 GetChangelistOperation(GDataOperationRegistry* registry,
hashimoto 2012/08/07 07:36:57 Please add a comment about the role of |start_chan
kochi 2012/08/07 07:46:04 Done.
56 int64 start_changestamp,
57 const GetDataCallback& callback);
58 virtual ~GetChangelistOperation();
59
60 // Sets |url| for changelist fetching operation. This should be used when it
61 // is necessary to explicitly specify the next page URL.
62 void SetURL(const GURL& url);
hashimoto 2012/08/07 07:36:57 Do we need this method? Can't |url| be passed to t
kochi 2012/08/07 07:46:04 Changed the comment to be more specific. The know
hashimoto 2012/08/07 07:57:43 What I meant was deleting SetURL and allowing pass
kochi 2012/08/07 09:06:52 Agreed, removed SetURL() from this file and gdata_
63
64 protected:
65 // Overridden from GetDataOperation.
66 virtual GURL GetURL() const OVERRIDE;
67
68 private:
69 GURL override_url_;
70 int64 start_changestamp_;
71
72 DISALLOW_COPY_AND_ASSIGN(GetChangelistOperation);
73 };
74
50 } // namespace gdata 75 } // namespace gdata
51 76
52 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ 77 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/drive_api_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698