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

Unified Diff: chrome/browser/local_discovery/privetv3_session.h

Issue 468613003: API change to allow sticker authentication for devices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/local_discovery/privetv3_session.h
diff --git a/chrome/browser/local_discovery/privetv3_session.h b/chrome/browser/local_discovery/privetv3_session.h
index b6631a27a12b37a206678333f8a1ef2c73385d94..91771b105f5f4f301c56da4f367bc054af8d832a 100644
--- a/chrome/browser/local_discovery/privetv3_session.h
+++ b/chrome/browser/local_discovery/privetv3_session.h
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/local_discovery/privet_url_fetcher.h"
+#include "chrome/common/extensions/api/gcd_private.h"
namespace base {
class DictionaryValue;
@@ -32,14 +33,11 @@ class PrivetV3Session {
// Called when client code should prompt user to check |confirmation_code|.
virtual void OnSetupConfirmationNeeded(
- const std::string& confirmation_code) = 0;
+ const std::string& confirmation_code,
+ extensions::api::gcd_private::ConfirmationType confirmation_type) = 0;
- // Called when session successfully establish and client code my call
- // |CreateRequest| method.
- virtual void OnSessionEstablished() = 0;
-
- // Called when session setup fails.
- virtual void OnCannotEstablishSession() = 0;
+ virtual void OnSessionStatus(
+ extensions::api::gcd_private::Status status) = 0;
};
// Represents request in progress using secure session.
@@ -66,7 +64,7 @@ class PrivetV3Session {
// |OnSessionEstablished|.
void Start();
- void ConfirmCode();
+ void ConfirmCode(const std::string& code);
// Create a single /privet/v3/session/call request.
void StartRequest(Request* request);
« no previous file with comments | « chrome/browser/extensions/api/gcd_private/gcd_private_api.cc ('k') | chrome/browser/local_discovery/privetv3_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698