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

Unified Diff: mandoline/tab/frame_connection.cc

Issue 1166123005: Removes ServiceProviders from ViewManager::Embed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use is_headless rather than check for browser. Created 5 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
« no previous file with comments | « mandoline/tab/frame_connection.h ('k') | mandoline/tab/frame_services.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/tab/frame_connection.cc
diff --git a/mandoline/tab/frame_connection.cc b/mandoline/tab/frame_connection.cc
new file mode 100644
index 0000000000000000000000000000000000000000..36e6234a7e786e5102b688fbe5d55d8078bf7394
--- /dev/null
+++ b/mandoline/tab/frame_connection.cc
@@ -0,0 +1,27 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "mandoline/tab/frame_connection.h"
+
+#include "mojo/application/public/cpp/application_connection.h"
+#include "mojo/application/public/cpp/application_impl.h"
+
+namespace mandoline {
+
+FrameConnection::FrameConnection() : application_connection_(nullptr) {
+}
+
+FrameConnection::~FrameConnection() {
+}
+
+void FrameConnection::Init(mojo::ApplicationImpl* app,
+ mojo::URLRequestPtr request,
+ mojo::ViewManagerClientPtr* view_manage_client) {
+ DCHECK(!application_connection_);
+ application_connection_ = app->ConnectToApplication(request.Pass());
+ application_connection_->ConnectToService(view_manage_client);
+ application_connection_->ConnectToService(&frame_tree_client_);
+}
+
+} // namespace mandoline
« no previous file with comments | « mandoline/tab/frame_connection.h ('k') | mandoline/tab/frame_services.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698