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

Side by Side Diff: chrome/browser/google_apis/gdata_wapi_operations.h

Issue 12388017: Move the responsibility to convert from JSON to AccountMetadata into gdata_wapi_operations. (Closed) Base URL: http://git.chromium.org/chromium/src.git@b148632_gdata_wapi_get_about_resource_impl
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/google_apis/gdata_wapi_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_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 //========================= GetAccountMetadataOperation ======================== 106 //========================= GetAccountMetadataOperation ========================
107 107
108 // This class performs the operation for fetching account metadata. 108 // This class performs the operation for fetching account metadata.
109 class GetAccountMetadataOperation : public GetDataOperation { 109 class GetAccountMetadataOperation : public GetDataOperation {
110 public: 110 public:
111 // |callback| must not be null. 111 // |callback| must not be null.
112 GetAccountMetadataOperation( 112 GetAccountMetadataOperation(
113 OperationRegistry* registry, 113 OperationRegistry* registry,
114 net::URLRequestContextGetter* url_request_context_getter, 114 net::URLRequestContextGetter* url_request_context_getter,
115 const GDataWapiUrlGenerator& url_generator, 115 const GDataWapiUrlGenerator& url_generator,
116 const GetDataCallback& callback); 116 const GetAccountMetadataCallback& callback);
117 virtual ~GetAccountMetadataOperation(); 117 virtual ~GetAccountMetadataOperation();
118 118
119 protected: 119 protected:
120 // UrlFetchOperationBase overrides. 120 // UrlFetchOperationBase overrides.
121 virtual GURL GetURL() const OVERRIDE; 121 virtual GURL GetURL() const OVERRIDE;
122 122
123 private: 123 private:
124 const GDataWapiUrlGenerator url_generator_; 124 const GDataWapiUrlGenerator url_generator_;
125 DISALLOW_COPY_AND_ASSIGN(GetAccountMetadataOperation); 125 DISALLOW_COPY_AND_ASSIGN(GetAccountMetadataOperation);
126 }; 126 };
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 private: 522 private:
523 const UploadRangeCallback callback_; 523 const UploadRangeCallback callback_;
524 const int64 content_length_; 524 const int64 content_length_;
525 525
526 DISALLOW_COPY_AND_ASSIGN(GetUploadStatusOperation); 526 DISALLOW_COPY_AND_ASSIGN(GetUploadStatusOperation);
527 }; 527 };
528 528
529 } // namespace google_apis 529 } // namespace google_apis
530 530
531 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ 531 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/google_apis/gdata_wapi_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698