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

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: 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
« no previous file with comments | « blimp/engine/app/test_content_main_delegate.cc ('k') | blimp/engine/session/blimp_engine_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..efe50e455ec30fbed360844e9d8161fdc37087c5 100644
--- a/blimp/engine/session/blimp_engine_session.h
+++ b/blimp/engine/session/blimp_engine_session.h
@@ -74,6 +74,8 @@ class BlimpEngineSession
public ui::InputMethodObserver,
public EngineRenderWidgetFeature::RenderWidgetMessageDelegate {
public:
+ using GetPortCallback = base::Callback<void(uint16_t)>;
+
BlimpEngineSession(std::unique_ptr<BlimpBrowserContext> browser_context,
net::NetLog* net_log,
BlimpEngineConfig* config,
@@ -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,
« no previous file with comments | « blimp/engine/app/test_content_main_delegate.cc ('k') | blimp/engine/session/blimp_engine_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698