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

Side by Side Diff: content/browser/browser_child_process_host_impl.h

Issue 2766263009: Convert content ConnectionFilter to OnBindInterface (Closed)
Patch Set: . Created 3 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 14 matching lines...) Expand all
25 #include "mojo/edk/embedder/pending_process_connection.h" 25 #include "mojo/edk/embedder/pending_process_connection.h"
26 26
27 #if defined(OS_WIN) 27 #if defined(OS_WIN)
28 #include "base/win/object_watcher.h" 28 #include "base/win/object_watcher.h"
29 #endif 29 #endif
30 30
31 namespace base { 31 namespace base {
32 class CommandLine; 32 class CommandLine;
33 } 33 }
34 34
35 namespace service_manager {
36 class InterfaceProvider;
37 }
38
39 namespace content { 35 namespace content {
40 36
41 class BrowserChildProcessHostIterator; 37 class BrowserChildProcessHostIterator;
42 class BrowserChildProcessObserver; 38 class BrowserChildProcessObserver;
43 class BrowserMessageFilter; 39 class BrowserMessageFilter;
44 class ChildConnection; 40 class ChildConnection;
45 41
46 // Plugins/workers and other child processes that live on the IO thread use this 42 // Plugins/workers and other child processes that live on the IO thread use this
47 // class. RenderProcessHostImpl is the main exception that doesn't use this 43 // class. RenderProcessHostImpl is the main exception that doesn't use this
48 /// class because it lives on the UI thread. 44 /// class because it lives on the UI thread.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 override; 77 override;
82 void SetName(const base::string16& name) override; 78 void SetName(const base::string16& name) override;
83 void SetHandle(base::ProcessHandle handle) override; 79 void SetHandle(base::ProcessHandle handle) override;
84 std::string GetServiceRequestChannelToken() override; 80 std::string GetServiceRequestChannelToken() override;
85 81
86 // ChildProcessHostDelegate implementation: 82 // ChildProcessHostDelegate implementation:
87 bool CanShutdown() override; 83 bool CanShutdown() override;
88 void OnChannelInitialized(IPC::Channel* channel) override; 84 void OnChannelInitialized(IPC::Channel* channel) override;
89 void OnChildDisconnected() override; 85 void OnChildDisconnected() override;
90 const base::Process& GetProcess() const override; 86 const base::Process& GetProcess() const override;
91 service_manager::InterfaceProvider* GetRemoteInterfaces() override; 87 void BindInterface(const std::string& interface_name,
88 mojo::ScopedMessagePipeHandle interface_pipe) override;
92 bool OnMessageReceived(const IPC::Message& message) override; 89 bool OnMessageReceived(const IPC::Message& message) override;
93 void OnChannelConnected(int32_t peer_pid) override; 90 void OnChannelConnected(int32_t peer_pid) override;
94 void OnChannelError() override; 91 void OnChannelError() override;
95 void OnBadMessageReceived(const IPC::Message& message) override; 92 void OnBadMessageReceived(const IPC::Message& message) override;
96 93
97 // Terminates the process and logs a stack trace after a bad message was 94 // Terminates the process and logs a stack trace after a bad message was
98 // received from the child process. 95 // received from the child process.
99 void TerminateOnBadMessageReceived(const std::string& error); 96 void TerminateOnBadMessageReceived(const std::string& error);
100 97
101 // Removes this host from the host list. Calls ChildProcessHost::ForceShutdown 98 // Removes this host from the host list. Calls ChildProcessHost::ForceShutdown
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 IPC::Channel* channel_ = nullptr; 169 IPC::Channel* channel_ = nullptr;
173 bool is_channel_connected_; 170 bool is_channel_connected_;
174 bool notify_child_disconnected_; 171 bool notify_child_disconnected_;
175 172
176 base::WeakPtrFactory<BrowserChildProcessHostImpl> weak_factory_; 173 base::WeakPtrFactory<BrowserChildProcessHostImpl> weak_factory_;
177 }; 174 };
178 175
179 } // namespace content 176 } // namespace content
180 177
181 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 178 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « components/web_cache/browser/web_cache_manager.cc ('k') | content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698