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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « mandoline/tab/frame_apptest.cc ('k') | mandoline/tab/frame_connection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MANDOLINE_TAB_FRAME_CONNECTION_H_
6 #define MANDOLINE_TAB_FRAME_CONNECTION_H_
7
8 #include "base/basictypes.h"
9 #include "components/view_manager/public/interfaces/view_manager.mojom.h"
10 #include "mandoline/tab/frame_user_data.h"
11 #include "mandoline/tab/public/interfaces/frame_tree.mojom.h"
12 #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
13
14 namespace mojo {
15 class ApplicationConnection;
16 class ApplicationImpl;
17 }
18
19 namespace mandoline {
20
21 // FrameConnection is a FrameUserData that manages the connection to a
22 // particular frame. It is also responsible for obtaining the necessary
23 // services from the remote side.
24 class FrameConnection : public FrameUserData {
25 public:
26 FrameConnection();
27 ~FrameConnection() override;
28
29 void Init(mojo::ApplicationImpl* app,
30 mojo::URLRequestPtr request,
31 mojo::ViewManagerClientPtr* view_manage_client);
32
33 FrameTreeClient* frame_tree_client() { return frame_tree_client_.get(); }
34
35 mojo::ApplicationConnection* application_connection() {
36 return application_connection_;
37 }
38
39 private:
40 FrameTreeClientPtr frame_tree_client_;
41 // TODO(sky): needs to be destroyed when connection lost.
42 mojo::ApplicationConnection* application_connection_;
43
44 DISALLOW_COPY_AND_ASSIGN(FrameConnection);
45 };
46
47 } // namespace mandoline
48
49 #endif // MANDOLINE_TAB_FRAME_CONNECTION_H_
OLDNEW
« 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