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

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

Issue 11577002: Converted ResumeUploadOperation to use JSON in response instead of XML. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up. Created 8 years 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
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 // This file provides base classes used to implement operations for Google APIs. 5 // This file provides base classes used to implement operations for Google APIs.
6 6
7 #ifndef CHROME_BROWSER_GOOGLE_APIS_BASE_OPERATIONS_H_ 7 #ifndef CHROME_BROWSER_GOOGLE_APIS_BASE_OPERATIONS_H_
8 #define CHROME_BROWSER_GOOGLE_APIS_BASE_OPERATIONS_H_ 8 #define CHROME_BROWSER_GOOGLE_APIS_BASE_OPERATIONS_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 13 matching lines...) Expand all
24 namespace base { 24 namespace base {
25 class Value; 25 class Value;
26 } // namespace base 26 } // namespace base
27 27
28 namespace net { 28 namespace net {
29 class URLRequestContextGetter; 29 class URLRequestContextGetter;
30 } // namespace net 30 } // namespace net
31 31
32 namespace google_apis { 32 namespace google_apis {
33 33
34 // Callback used to pass parsed JSON from parseJson(). If parsing error occures,
35 // then the passed argument is null.
36 typedef base::Callback<void(scoped_ptr<base::Value>)> ParseJsonCallback;
37
38 // Parses JSON passed in |data| on blocking pool. Calls |callback| when finished
39 // with either success or failure. The callback must not be null.
40 void parseJson(const std::string& data, const ParseJsonCallback& callback);
satorux1 2012/12/14 00:17:24 parseJson -> ParseJson Calls |callback| when fini
mtomasz 2012/12/14 04:58:36 Done.
41
34 //======================= AuthenticatedOperationInterface ====================== 42 //======================= AuthenticatedOperationInterface ======================
35 43
36 // An interface class for implementing an operation which requires OAuth2 44 // An interface class for implementing an operation which requires OAuth2
37 // authentication. 45 // authentication.
38 class AuthenticatedOperationInterface { 46 class AuthenticatedOperationInterface {
39 public: 47 public:
40 // Called when re-authentication is required. See Start() for details. 48 // Called when re-authentication is required. See Start() for details.
41 typedef base::Callback<void(AuthenticatedOperationInterface* operation)> 49 typedef base::Callback<void(AuthenticatedOperationInterface* operation)>
42 ReAuthenticateCallback; 50 ReAuthenticateCallback;
43 51
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 253
246 // Note: This should remain the last member so it'll be destroyed and 254 // Note: This should remain the last member so it'll be destroyed and
247 // invalidate its weak pointers before any other members are destroyed. 255 // invalidate its weak pointers before any other members are destroyed.
248 base::WeakPtrFactory<GetDataOperation> weak_ptr_factory_; 256 base::WeakPtrFactory<GetDataOperation> weak_ptr_factory_;
249 DISALLOW_COPY_AND_ASSIGN(GetDataOperation); 257 DISALLOW_COPY_AND_ASSIGN(GetDataOperation);
250 }; 258 };
251 259
252 } // namespace google_apis 260 } // namespace google_apis
253 261
254 #endif // CHROME_BROWSER_GOOGLE_APIS_BASE_OPERATIONS_H_ 262 #endif // CHROME_BROWSER_GOOGLE_APIS_BASE_OPERATIONS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/google_apis/base_operations.cc » ('j') | chrome/browser/google_apis/base_operations.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698