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

Side by Side Diff: content/common/mojo/mojo_shell_connection_impl.h

Issue 2183703005: Renderers should obtain browser InterfaceProvider by connecting to browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 | « content/common/mojo/constants.cc ('k') | content/common/mojo/mojo_shell_connection_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ 5 #ifndef CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_
6 #define CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ 6 #define CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 27 matching lines...) Expand all
38 // MojoShellConnection: 38 // MojoShellConnection:
39 void Start() override; 39 void Start() override;
40 void SetInitializeHandler(const base::Closure& handler) override; 40 void SetInitializeHandler(const base::Closure& handler) override;
41 shell::Connector* GetConnector() override; 41 shell::Connector* GetConnector() override;
42 const shell::Identity& GetIdentity() const override; 42 const shell::Identity& GetIdentity() const override;
43 void SetConnectionLostClosure(const base::Closure& closure) override; 43 void SetConnectionLostClosure(const base::Closure& closure) override;
44 void SetupInterfaceRequestProxies( 44 void SetupInterfaceRequestProxies(
45 shell::InterfaceRegistry* registry, 45 shell::InterfaceRegistry* registry,
46 shell::InterfaceProvider* provider) override; 46 shell::InterfaceProvider* provider) override;
47 void AddConnectionFilter(std::unique_ptr<ConnectionFilter> filter) override; 47 void AddConnectionFilter(std::unique_ptr<ConnectionFilter> filter) override;
48 std::unique_ptr<ConnectionFilter> RemoveConnectionFilter(
49 ConnectionFilter* filter) override;
48 void AddEmbeddedService(const std::string& name, 50 void AddEmbeddedService(const std::string& name,
49 const MojoApplicationInfo& info) override; 51 const MojoApplicationInfo& info) override;
50 void AddServiceRequestHandler( 52 void AddServiceRequestHandler(
51 const std::string& name, 53 const std::string& name,
52 const ServiceRequestHandler& handler) override; 54 const ServiceRequestHandler& handler) override;
53 55
54 void OnContextInitialized(const shell::Identity& identity); 56 void OnContextInitialized(const shell::Identity& identity);
55 void OnConnectionLost(); 57 void OnConnectionLost();
56 void CreateService(shell::mojom::ServiceRequest request, 58 void CreateService(shell::mojom::ServiceRequest request,
57 const mojo::String& name); 59 const mojo::String& name);
(...skipping 14 matching lines...) Expand all
72 std::unordered_map<std::string, ServiceRequestHandler> request_handlers_; 74 std::unordered_map<std::string, ServiceRequestHandler> request_handlers_;
73 75
74 base::WeakPtrFactory<MojoShellConnectionImpl> weak_factory_; 76 base::WeakPtrFactory<MojoShellConnectionImpl> weak_factory_;
75 77
76 DISALLOW_COPY_AND_ASSIGN(MojoShellConnectionImpl); 78 DISALLOW_COPY_AND_ASSIGN(MojoShellConnectionImpl);
77 }; 79 };
78 80
79 } // namespace content 81 } // namespace content
80 82
81 #endif // CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ 83 #endif // CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/mojo/constants.cc ('k') | content/common/mojo/mojo_shell_connection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698