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

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

Issue 880373004: Implement of privet/v3/auth after pairing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patches
Patch Set: Fri Jan 30 02:24:45 PST 2015 Created 5 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privetv3_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 099b5a071e7467332134ceed4216d9d4685ed0b5..5454b7c41294fd93fee25039747f3a1ebd776a68 100644
--- a/chrome/browser/local_discovery/privetv3_session.h
+++ b/chrome/browser/local_discovery/privetv3_session.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/callback.h"
+#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
@@ -56,7 +57,7 @@ class PrivetV3Session {
void StartPairing(PairingType pairing_type, const ResultCallback& callback);
// Confirms pairing code by calling /privet/v3/pairing/confirm.
- // TODO(vitalybuka): Call /privet/v3/pairing/auth after pairing.
+ // Calls /privet/v3/pairing/auth after pairing.
void ConfirmCode(const std::string& code, const ResultCallback& callback);
// TODO(vitalybuka): Make HTTPS request to device with certificate validation.
@@ -66,6 +67,7 @@ class PrivetV3Session {
private:
friend class PrivetV3SessionTest;
+ FRIEND_TEST_ALL_PREFIXES(PrivetV3SessionTest, Pairing);
void OnInfoDone(const InitCallback& callback,
Result result,
@@ -76,6 +78,10 @@ class PrivetV3Session {
void OnPairingConfirmDone(const ResultCallback& callback,
Result result,
const base::DictionaryValue& response);
+ void OnAuthenticateDone(const ResultCallback& callback,
+ Result result,
+ const base::DictionaryValue& response);
+
void RunCallback(const base::Closure& callback);
void StartGetRequest(const std::string& api, const MessageCallback& callback);
void StartPostRequest(const std::string& api,
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privetv3_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698