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

Unified Diff: mandoline/tab/frame_connection.h

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_apptest.cc ('k') | mandoline/tab/frame_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/tab/frame_connection.h
diff --git a/mandoline/tab/frame_connection.h b/mandoline/tab/frame_connection.h
new file mode 100644
index 0000000000000000000000000000000000000000..2ff44f831d3c5cf20b8030f69ea04522e1ffbc2d
--- /dev/null
+++ b/mandoline/tab/frame_connection.h
@@ -0,0 +1,49 @@
+// 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.
+
+#ifndef MANDOLINE_TAB_FRAME_CONNECTION_H_
+#define MANDOLINE_TAB_FRAME_CONNECTION_H_
+
+#include "base/basictypes.h"
+#include "components/view_manager/public/interfaces/view_manager.mojom.h"
+#include "mandoline/tab/frame_user_data.h"
+#include "mandoline/tab/public/interfaces/frame_tree.mojom.h"
+#include "mojo/services/network/public/interfaces/url_loader.mojom.h"
+
+namespace mojo {
+class ApplicationConnection;
+class ApplicationImpl;
+}
+
+namespace mandoline {
+
+// FrameConnection is a FrameUserData that manages the connection to a
+// particular frame. It is also responsible for obtaining the necessary
+// services from the remote side.
+class FrameConnection : public FrameUserData {
+ public:
+ FrameConnection();
+ ~FrameConnection() override;
+
+ void Init(mojo::ApplicationImpl* app,
+ mojo::URLRequestPtr request,
+ mojo::ViewManagerClientPtr* view_manage_client);
+
+ FrameTreeClient* frame_tree_client() { return frame_tree_client_.get(); }
+
+ mojo::ApplicationConnection* application_connection() {
+ return application_connection_;
+ }
+
+ private:
+ FrameTreeClientPtr frame_tree_client_;
+ // TODO(sky): needs to be destroyed when connection lost.
+ mojo::ApplicationConnection* application_connection_;
+
+ DISALLOW_COPY_AND_ASSIGN(FrameConnection);
+};
+
+} // namespace mandoline
+
+#endif // MANDOLINE_TAB_FRAME_CONNECTION_H_
« no previous file with comments | « mandoline/tab/frame_apptest.cc ('k') | mandoline/tab/frame_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698