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

Side by Side Diff: content/common/gpu/gpu_channel.h

Issue 621613002: Refactoring: Make IPC::Channel::TakeClientFileDescriptor() a ScopedFD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing Mac build Created 6 years, 2 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_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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // Get the GpuChannelManager that owns this channel. 66 // Get the GpuChannelManager that owns this channel.
67 GpuChannelManager* gpu_channel_manager() const { 67 GpuChannelManager* gpu_channel_manager() const {
68 return gpu_channel_manager_; 68 return gpu_channel_manager_;
69 } 69 }
70 70
71 // Returns the name of the associated IPC channel. 71 // Returns the name of the associated IPC channel.
72 std::string GetChannelName(); 72 std::string GetChannelName();
73 73
74 #if defined(OS_POSIX) 74 #if defined(OS_POSIX)
75 int TakeRendererFileDescriptor(); 75 base::ScopedFD TakeRendererFileDescriptor();
76 #endif // defined(OS_POSIX) 76 #endif // defined(OS_POSIX)
77 77
78 base::ProcessId renderer_pid() const { return channel_->GetPeerPID(); } 78 base::ProcessId renderer_pid() const { return channel_->GetPeerPID(); }
79 79
80 int client_id() const { return client_id_; } 80 int client_id() const { return client_id_; }
81 81
82 scoped_refptr<base::MessageLoopProxy> io_message_loop() const { 82 scoped_refptr<base::MessageLoopProxy> io_message_loop() const {
83 return io_message_loop_; 83 return io_message_loop_;
84 } 84 }
85 85
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // that any WeakPtrs to Controller are invalidated before its members 223 // that any WeakPtrs to Controller are invalidated before its members
224 // variable's destructors are executed, rendering them invalid. 224 // variable's destructors are executed, rendering them invalid.
225 base::WeakPtrFactory<GpuChannel> weak_factory_; 225 base::WeakPtrFactory<GpuChannel> weak_factory_;
226 226
227 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 227 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
228 }; 228 };
229 229
230 } // namespace content 230 } // namespace content
231 231
232 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 232 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698