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

Unified Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h

Issue 23780002: Actual cancelation of registration when cancel buttons pressed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h
diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h
index 59d43167f717c3c21a6fa32cd53984f7ab7fd55f..68e1069ce7d7034d3f1f5a40852caff20cf99ded 100644
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h
@@ -86,6 +86,9 @@ class LocalDiscoveryUIHandler : public content::WebUIMessageHandler,
// For when a user choice is made.
void HandleChooseUser(const base::ListValue* args);
+ // For when a cancelation is made.
+ void HandleCancelRegistration(const base::ListValue* args);
+
// For when the IP address of the printer has been resolved for registration.
void StartRegisterHTTP(
const std::string& user,
@@ -126,6 +129,9 @@ class LocalDiscoveryUIHandler : public content::WebUIMessageHandler,
const std::string& xsrf_token,
const GURL& automatic_claim_url);
+ // Reset and cancel the current registration.
+ void ResetCurrentRegistration();
+
// The current HTTP client (used for the current operation).
scoped_ptr<PrivetHTTPClient> current_http_client_;

Powered by Google App Engine
This is Rietveld 408576698