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

Unified Diff: content/public/common/connection_filter.h

Issue 2215133002: Change signature of OnConnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/mojo/mojo_shell_connection_impl.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/connection_filter.h
diff --git a/content/public/common/connection_filter.h b/content/public/common/connection_filter.h
index be8da3fb00839193de913d3c11f2bf9b8c5347d2..60679a865ad3a26118b4eb9d833f961115ccb01c 100644
--- a/content/public/common/connection_filter.h
+++ b/content/public/common/connection_filter.h
@@ -8,8 +8,9 @@
#include "content/common/content_export.h"
namespace shell {
-class Connection;
class Connector;
+class Identity;
+class InterfaceRegistry;
}
namespace content {
@@ -23,7 +24,7 @@ class CONTENT_EXPORT ConnectionFilter {
virtual ~ConnectionFilter() {}
// Called for every new connection accepted. Implementations may add
- // interfaces to |connection|, in which case they should return |true|.
+ // interfaces to |registry|, in which case they should return |true|.
// |connector| is a corresponding outgoing Connector that may be used by any
// interfaces added to the connection. Note that references to |connector|
// must not be retained, but an owned copy may be obtained by calling
@@ -31,7 +32,8 @@ class CONTENT_EXPORT ConnectionFilter {
//
// If a ConnectionFilter is not interested in an incoming connection, it
// should return |false|.
- virtual bool OnConnect(shell::Connection* connection,
+ virtual bool OnConnect(const shell::Identity& remote_identity,
+ shell::InterfaceRegistry* registry,
shell::Connector* connector) = 0;
};
« no previous file with comments | « content/common/mojo/mojo_shell_connection_impl.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698