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

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

Issue 10831122: gdata cleanup: stop passing Profile* around GData operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. 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
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_
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