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 |
11 #include "chrome/browser/chromeos/gdata/operations_base.h" | 11 #include "chrome/browser/chromeos/gdata/operations_base.h" |
12 | 12 |
13 // TODO(kochi): Rename to namespace drive. http://crbug.com/136371 | 13 // TODO(kochi): Rename to namespace drive. http://crbug.com/136371 |
14 namespace gdata { | 14 namespace gdata { |
15 | 15 |
16 //============================== GetAboutOperation ============================= | 16 //============================== GetAboutOperation ============================= |
17 | 17 |
18 // This class performs the operation for fetching About data. | 18 // This class performs the operation for fetching About data. |
19 class GetAboutOperation : public GetDataOperation { | 19 class GetAboutOperation : public GetDataOperation { |
20 public: | 20 public: |
21 GetAboutOperation(GDataOperationRegistry* registry, | 21 GetAboutOperation(GDataOperationRegistry* registry, |
22 Profile* profile, | |
23 const GetDataCallback& callback); | 22 const GetDataCallback& callback); |
24 virtual ~GetAboutOperation(); | 23 virtual ~GetAboutOperation(); |
25 | 24 |
26 protected: | 25 protected: |
27 // Overridden from GetDataOperation. | 26 // Overridden from GetDataOperation. |
28 virtual GURL GetURL() const OVERRIDE; | 27 virtual GURL GetURL() const OVERRIDE; |
29 | 28 |
30 private: | 29 private: |
31 DISALLOW_COPY_AND_ASSIGN(GetAboutOperation); | 30 DISALLOW_COPY_AND_ASSIGN(GetAboutOperation); |
32 }; | 31 }; |
33 | 32 |
34 //============================= GetApplistOperation ============================ | 33 //============================= GetApplistOperation ============================ |
35 | 34 |
36 // This class performs the operation for fetching Applist. | 35 // This class performs the operation for fetching Applist. |
37 class GetApplistOperation : public GetDataOperation { | 36 class GetApplistOperation : public GetDataOperation { |
38 public: | 37 public: |
39 GetApplistOperation(GDataOperationRegistry* registry, | 38 GetApplistOperation(GDataOperationRegistry* registry, |
40 Profile* profile, | |
41 const GetDataCallback& callback); | 39 const GetDataCallback& callback); |
42 virtual ~GetApplistOperation(); | 40 virtual ~GetApplistOperation(); |
43 | 41 |
44 protected: | 42 protected: |
45 // Overridden from GetDataOperation. | 43 // Overridden from GetDataOperation. |
46 virtual GURL GetURL() const OVERRIDE; | 44 virtual GURL GetURL() const OVERRIDE; |
47 | 45 |
48 private: | 46 private: |
49 DISALLOW_COPY_AND_ASSIGN(GetApplistOperation); | 47 DISALLOW_COPY_AND_ASSIGN(GetApplistOperation); |
50 }; | 48 }; |
51 | 49 |
52 } // namespace gdata | 50 } // namespace gdata |
53 | 51 |
54 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ | 52 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ |
OLD | NEW |