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

Side by Side Diff: mandoline/tab/frame_services.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_connection.cc ('k') | mandoline/tab/frame_services.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_SERVICES_H_
6 #define MANDOLINE_TAB_FRAME_SERVICES_H_
7
8 #include "base/basictypes.h"
9 #include "mandoline/tab/frame_user_data.h"
10 #include "mandoline/tab/public/interfaces/frame_tree.mojom.h"
11 #include "mojo/application/public/cpp/service_provider_impl.h"
12
13 namespace mandoline {
14
15 // FrameServices is a FrameUserData that manages the ServiceProviders exposed
16 // to each client. It is also responsible for obtaining the FrameTreeClient
17 // from the remote side.
18 class FrameServices : public FrameUserData {
19 public:
20 FrameServices();
21 ~FrameServices() override;
22
23 void Init(mojo::InterfaceRequest<mojo::ServiceProvider>* services,
24 mojo::ServiceProviderPtr* exposed_services);
25
26 FrameTreeClient* frame_tree_client() { return frame_tree_client_.get(); }
27
28 private:
29 mojo::ServiceProviderImpl exposed_services_;
30 mojo::ServiceProviderPtr services_;
31 FrameTreeClientPtr frame_tree_client_;
32
33 DISALLOW_COPY_AND_ASSIGN(FrameServices);
34 };
35
36 } // namespace mandoline
37
38 #endif // MANDOLINE_TAB_FRAME_SERVICES_H_
OLDNEW
« no previous file with comments | « mandoline/tab/frame_connection.cc ('k') | mandoline/tab/frame_services.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698