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

Side by Side Diff: ipc/ipc_test_sink.cc

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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "ipc/ipc_test_sink.h" 5 #include "ipc/ipc_test_sink.h"
6 6
7 #include "ipc/ipc_listener.h" 7 #include "ipc/ipc_listener.h"
8 #include "ipc/ipc_message.h" 8 #include "ipc/ipc_message.h"
9 9
10 namespace IPC { 10 namespace IPC {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 filter_list_.RemoveObserver(filter); 93 filter_list_.RemoveObserver(filter);
94 } 94 }
95 95
96 #if defined(OS_POSIX) && !defined(OS_NACL) 96 #if defined(OS_POSIX) && !defined(OS_NACL)
97 97
98 int TestSink::GetClientFileDescriptor() const { 98 int TestSink::GetClientFileDescriptor() const {
99 NOTREACHED(); 99 NOTREACHED();
100 return -1; 100 return -1;
101 } 101 }
102 102
103 int TestSink::TakeClientFileDescriptor() { 103 base::ScopedFD TestSink::TakeClientFileDescriptor() {
104 NOTREACHED(); 104 NOTREACHED();
105 return -1; 105 return base::ScopedFD();
106 } 106 }
107 107
108 #endif // defined(OS_POSIX) && !defined(OS_NACL) 108 #endif // defined(OS_POSIX) && !defined(OS_NACL)
109 109
110 } // namespace IPC 110 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/ipc_test_sink.h ('k') | ipc/mojo/ipc_channel_mojo.h » ('j') | ppapi/proxy/proxy_channel.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698