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

Side by Side Diff: content/browser/frame_host/frame_mojo_shell.h

Issue 1244233002: Allow trusted brokers to restrict connections for spawned applications to whitelisted applications … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "mojo/application/public/interfaces/shell.mojom.h" 10 #include "mojo/application/public/interfaces/shell.mojom.h"
(...skipping 12 matching lines...) Expand all
23 explicit FrameMojoShell(RenderFrameHost* frame_host); 23 explicit FrameMojoShell(RenderFrameHost* frame_host);
24 ~FrameMojoShell() override; 24 ~FrameMojoShell() override;
25 25
26 void BindRequest(mojo::InterfaceRequest<mojo::Shell> shell_request); 26 void BindRequest(mojo::InterfaceRequest<mojo::Shell> shell_request);
27 27
28 private: 28 private:
29 // mojo::Shell: 29 // mojo::Shell:
30 void ConnectToApplication( 30 void ConnectToApplication(
31 mojo::URLRequestPtr application_url, 31 mojo::URLRequestPtr application_url,
32 mojo::InterfaceRequest<mojo::ServiceProvider> services, 32 mojo::InterfaceRequest<mojo::ServiceProvider> services,
33 mojo::ServiceProviderPtr exposed_services) override; 33 mojo::ServiceProviderPtr exposed_services,
34 mojo::CapabilityFilterPtr filter) override;
34 void QuitApplication() override; 35 void QuitApplication() override;
35 36
36 ServiceRegistryImpl* GetServiceRegistry(); 37 ServiceRegistryImpl* GetServiceRegistry();
37 38
38 RenderFrameHost* frame_host_; 39 RenderFrameHost* frame_host_;
39 mojo::WeakBindingSet<mojo::Shell> bindings_; 40 mojo::WeakBindingSet<mojo::Shell> bindings_;
40 41
41 // ServiceRegistry providing browser services to connected applications. 42 // ServiceRegistry providing browser services to connected applications.
42 scoped_ptr<ServiceRegistryImpl> service_registry_; 43 scoped_ptr<ServiceRegistryImpl> service_registry_;
43 mojo::WeakBindingSet<mojo::ServiceProvider> service_provider_bindings_; 44 mojo::WeakBindingSet<mojo::ServiceProvider> service_provider_bindings_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(FrameMojoShell); 46 DISALLOW_COPY_AND_ASSIGN(FrameMojoShell);
46 }; 47 };
47 48
48 } // namespace content 49 } // namespace content
49 50
50 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_ 51 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698