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

Unified Diff: blimp/engine/session/blimp_engine_session.h

Issue 1929723002: [Blimp] Adds blimp engine browser test framework and LoadUrl test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address Kevin's comments Created 4 years, 7 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: blimp/engine/session/blimp_engine_session.h
diff --git a/blimp/engine/session/blimp_engine_session.h b/blimp/engine/session/blimp_engine_session.h
index a78bb664c4b7a560cf1ca9a07c75f8b76be33b11..03d3e6bf973bc0cf4e63b809655d2b2adb025537 100644
--- a/blimp/engine/session/blimp_engine_session.h
+++ b/blimp/engine/session/blimp_engine_session.h
@@ -67,6 +67,8 @@ class BlimpScreen;
class BlimpWindowTreeHost;
class EngineNetworkComponents;
+using GetPortCallback = base::Callback<void(uint16_t)>;
Kevin M 2016/05/05 22:52:54 nit: make this a public member of BlimpEngineSessi
haibinlu 2016/05/05 23:39:25 Done.
+
class BlimpEngineSession
: public BlimpMessageProcessor,
public content::WebContentsDelegate,
@@ -87,6 +89,9 @@ class BlimpEngineSession
BlimpBrowserContext* browser_context() { return browser_context_.get(); }
+ // Gets Engine's listening port. Invokes callback with the allocated port.
+ void GetEnginePortForTesting(const GetPortCallback& callback);
+
// BlimpMessageProcessor implementation.
// This object handles incoming TAB_CONTROL and NAVIGATION messages directly.
void ProcessMessage(std::unique_ptr<BlimpMessage> message,

Powered by Google App Engine
This is Rietveld 408576698