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

Side by Side Diff: content/child/child_thread.h

Issue 304273004: Add name to services (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Get chrome to build Created 6 years, 6 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 | Annotate | Revision Log
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_CHILD_CHILD_THREAD_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_H_
6 #define CONTENT_CHILD_CHILD_THREAD_H_ 6 #define CONTENT_CHILD_CHILD_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 void set_on_channel_error_called(bool on_channel_error_called) { 164 void set_on_channel_error_called(bool on_channel_error_called) {
165 on_channel_error_called_ = on_channel_error_called; 165 on_channel_error_called_ = on_channel_error_called;
166 } 166 }
167 167
168 // IPC::Listener implementation: 168 // IPC::Listener implementation:
169 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 169 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
170 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 170 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
171 virtual void OnChannelError() OVERRIDE; 171 virtual void OnChannelError() OVERRIDE;
172 172
173 // mojo::ShellClient implementation: 173 // mojo::ServiceProvider implementation:
174 virtual void ConnectToService( 174 virtual void ConnectToService(
175 const mojo::String& service_name, 175 const mojo::String& url,
176 const mojo::String& name,
176 mojo::ScopedMessagePipeHandle message_pipe) OVERRIDE; 177 mojo::ScopedMessagePipeHandle message_pipe) OVERRIDE;
177 178
178 private: 179 private:
179 class ChildThreadMessageRouter : public MessageRouter { 180 class ChildThreadMessageRouter : public MessageRouter {
180 public: 181 public:
181 // |sender| must outlive this object. 182 // |sender| must outlive this object.
182 explicit ChildThreadMessageRouter(IPC::Sender* sender); 183 explicit ChildThreadMessageRouter(IPC::Sender* sender);
183 virtual bool Send(IPC::Message* msg) OVERRIDE; 184 virtual bool Send(IPC::Message* msg) OVERRIDE;
184 185
185 private: 186 private:
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 scoped_ptr<base::PowerMonitor> power_monitor_; 255 scoped_ptr<base::PowerMonitor> power_monitor_;
255 256
256 bool in_browser_process_; 257 bool in_browser_process_;
257 258
258 DISALLOW_COPY_AND_ASSIGN(ChildThread); 259 DISALLOW_COPY_AND_ASSIGN(ChildThread);
259 }; 260 };
260 261
261 } // namespace content 262 } // namespace content
262 263
263 #endif // CONTENT_CHILD_CHILD_THREAD_H_ 264 #endif // CONTENT_CHILD_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/child/child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698