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/common/gpu/gpu_channel.h

Issue 310293002: Make IPC::Channel polymorphic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another attempt to fix build breakage 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_COMMON_GPU_GPU_CHANNEL_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 return gpu_channel_manager_; 69 return gpu_channel_manager_;
70 } 70 }
71 71
72 // Returns the name of the associated IPC channel. 72 // Returns the name of the associated IPC channel.
73 std::string GetChannelName(); 73 std::string GetChannelName();
74 74
75 #if defined(OS_POSIX) 75 #if defined(OS_POSIX)
76 int TakeRendererFileDescriptor(); 76 int TakeRendererFileDescriptor();
77 #endif // defined(OS_POSIX) 77 #endif // defined(OS_POSIX)
78 78
79 base::ProcessId renderer_pid() const { return channel_->peer_pid(); } 79 base::ProcessId renderer_pid() const { return channel_->GetPeerPID(); }
80 80
81 int client_id() const { return client_id_; } 81 int client_id() const { return client_id_; }
82 82
83 scoped_refptr<base::MessageLoopProxy> io_message_loop() const { 83 scoped_refptr<base::MessageLoopProxy> io_message_loop() const {
84 return io_message_loop_; 84 return io_message_loop_;
85 } 85 }
86 86
87 // IPC::Listener implementation: 87 // IPC::Listener implementation:
88 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 88 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
89 virtual void OnChannelError() OVERRIDE; 89 virtual void OnChannelError() OVERRIDE;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 scoped_ptr<DevToolsGpuAgent> devtools_gpu_agent_; 224 scoped_ptr<DevToolsGpuAgent> devtools_gpu_agent_;
225 225
226 size_t num_stubs_descheduled_; 226 size_t num_stubs_descheduled_;
227 227
228 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 228 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
229 }; 229 };
230 230
231 } // namespace content 231 } // namespace content
232 232
233 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 233 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.cc ('k') | content/renderer/pepper/renderer_ppapi_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698