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

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

Issue 318283002: Added new GCD/Privet interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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_setup_flow.h
diff --git a/chrome/browser/local_discovery/privetv3_setup_flow.h b/chrome/browser/local_discovery/privetv3_setup_flow.h
index 81e7b449435685ada74c7cb6e4582507af60cea9..ffb5675bc469f95b4669d615905db770b98d2e1c 100644
--- a/chrome/browser/local_discovery/privetv3_setup_flow.h
+++ b/chrome/browser/local_discovery/privetv3_setup_flow.h
@@ -10,7 +10,6 @@
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/local_discovery/gcd_api_flow.h"
-#include "chrome/browser/local_discovery/privet_http_asynchronous_factory.h"
namespace local_discovery {
@@ -26,11 +25,13 @@ class PrivetV3SetupFlow {
typedef base::Callback<void(const std::string& ssid,
const std::string& key)> CredentialsCallback;
+ typedef base::Callback<void(scoped_ptr<PrivetV3HTTPClient>)>
+ PrivetClientCallback;
+
virtual ~Delegate();
// Creates |GCDApiFlow| for making requests to GCD server.
- virtual scoped_ptr<GCDApiFlow> CreateApiFlow(
- scoped_ptr<GCDApiFlow::Request> request) = 0;
+ virtual scoped_ptr<GCDApiFlowInterface> CreateApiFlow() = 0;
// Requests WiFi credentials.
virtual void GetWiFiCredentials(const CredentialsCallback& callback) = 0;
@@ -40,10 +41,9 @@ class PrivetV3SetupFlow {
virtual void SwitchToSetupWiFi(const ResultCallback& callback) = 0;
// Starts device resolution that should callback with ready
- // |PrivetHTTPClient|.
- virtual scoped_ptr<PrivetHTTPResolution> CreatePrivetHTTP(
- const std::string& service_name,
- const PrivetHTTPAsynchronousFactory::ResultCallback& callback) = 0;
+ // |PrivetV3HTTPClient|.
+ virtual void CreatePrivetV3Client(const std::string& service_name,
+ const PrivetClientCallback& callback) = 0;
// Requests client to prompt user to check |confirmation_code|.
virtual void ConfirmSecurityCode(const std::string& confirmation_code,

Powered by Google App Engine
This is Rietveld 408576698