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

Unified Diff: cloud_print/gcp20/prototype/cloud_print_response_parser.h

Issue 22555003: GCP2.0 Device: Local settings workflow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: cloud_print/gcp20/prototype/cloud_print_response_parser.h
diff --git a/cloud_print/gcp20/prototype/cloud_print_response_parser.h b/cloud_print/gcp20/prototype/cloud_print_response_parser.h
index 97a4c26ce01b97c9081ab226a9eb05573a7d8893..c32d9323393358a1e3e1dcb355543fd4a81f1f10 100644
--- a/cloud_print/gcp20/prototype/cloud_print_response_parser.h
+++ b/cloud_print/gcp20/prototype/cloud_print_response_parser.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/callback.h"
+#include "cloud_print/gcp20/prototype/local_settings.h"
namespace base {
@@ -34,8 +35,7 @@ struct Job {
};
// Parses CloudPrint register start response to out parameters.
-// Returns |true| on success. Callback is called with description as a parameter
-// when parsing is failed.
+// Returns |true| on success.
bool ParseRegisterStartResponse(const std::string& response,
std::string* error_description,
std::string* polling_url,
@@ -44,20 +44,25 @@ bool ParseRegisterStartResponse(const std::string& response,
std::string* device_id);
// Parses CloudPrint register complete response to out parameters.
-// Returns |true| on success. Callback is called with description as a parameter
-// when parsing is failed.
+// Returns |true| on success.
bool ParseRegisterCompleteResponse(const std::string& response,
std::string* error_description,
std::string* authorization_code,
std::string* xmpp_jid);
// Parses CloudPrint fetch response to out parameters.
-// Returns |true| on success. Callback is called with description as a parameter
-// when parsing is failed.
+// Returns |true| on success.
bool ParseFetchResponse(const std::string& response,
std::string* error_description,
std::vector<Job>* list);
+// Parses CloudPrint printer response to get Local Settings.
+// Returns |true| on success.
+bool ParseLocalSettingsResponse(const std::string& response,
+ std::string* error_description,
+ LocalSettings::State* state,
+ LocalSettings* settings);
+
} // namespace cloud_print_response_parser
#endif // CLOUD_PRINT_GCP20_PROTOTYPE_CLOUD_PRINT_RESPONSE_PARSER_H_
« no previous file with comments | « cloud_print/gcp20/prototype/cloud_print_requester.cc ('k') | cloud_print/gcp20/prototype/cloud_print_response_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698