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

Side by Side Diff: content/public/common/connection_filter.h

Issue 2138263002: Revert of Move content's shell connections to the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « content/public/child/child_thread.h ('k') | content/public/common/mojo_shell_connection.h » ('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 2016 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 CONTENT_PUBLIC_COMMON_CONNECTION_FILTER_H_
6 #define CONTENT_PUBLIC_COMMON_CONNECTION_FILTER_H_
7
8 #include "content/common/content_export.h"
9
10 namespace shell {
11 class Connection;
12 class Connector;
13 }
14
15 namespace content {
16
17 // A ConnectionFilter may be used to conditionally expose interfaces on inbound
18 // connections accepted by MojoShellConnection. ConnectionFilters are used
19 // exclusively on the IO thread. See MojoShellConnection::AddConnectionFilter
20 // for details.
21 class CONTENT_EXPORT ConnectionFilter {
22 public:
23 virtual ~ConnectionFilter() {}
24
25 // Called for every new connection accepted. Implementations may add
26 // interfaces to |connection|, in which case they should return |true|.
27 // |connector| is a corresponding outgoing Connector that may be used by any
28 // interfaces added to the connection. Note that references to |connector|
29 // must not be retained, but an owned copy may be obtained by calling
30 // |connector->Clone()|.
31 //
32 // If a ConnectionFilter is not interested in an incoming connection, it
33 // should return |false|.
34 virtual bool OnConnect(shell::Connection* connection,
35 shell::Connector* connector) = 0;
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_PUBLIC_COMMON_CONNECTION_FILTER_H_
OLDNEW
« no previous file with comments | « content/public/child/child_thread.h ('k') | content/public/common/mojo_shell_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698