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

Side by Side Diff: ipc/ipc_channel_common.cc

Issue 1350823002: Revert of Reland #2 "ipc: Add a new field num_brokered_attachments to the message header." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « ipc/ipc_channel.h ('k') | ipc/ipc_channel_reader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_channel.h" 5 #include "ipc/ipc_channel.h"
6 6
7 namespace IPC { 7 namespace IPC {
8 8
9 static Channel::MessageVerifier g_message_verifier = nullptr;
10
11 // static 9 // static
12 scoped_ptr<Channel> Channel::CreateClient( 10 scoped_ptr<Channel> Channel::CreateClient(
13 const IPC::ChannelHandle& channel_handle, 11 const IPC::ChannelHandle& channel_handle,
14 Listener* listener, 12 Listener* listener,
15 AttachmentBroker* broker) { 13 AttachmentBroker* broker) {
16 return Channel::Create(channel_handle, Channel::MODE_CLIENT, listener, 14 return Channel::Create(channel_handle, Channel::MODE_CLIENT, listener,
17 broker); 15 broker);
18 } 16 }
19 17
20 // static 18 // static
(...skipping 30 matching lines...) Expand all
51 const IPC::ChannelHandle& channel_handle, 49 const IPC::ChannelHandle& channel_handle,
52 Listener* listener, 50 Listener* listener,
53 AttachmentBroker* broker) { 51 AttachmentBroker* broker) {
54 return Channel::Create(channel_handle, Channel::MODE_SERVER, listener, 52 return Channel::Create(channel_handle, Channel::MODE_SERVER, listener,
55 broker); 53 broker);
56 } 54 }
57 55
58 Channel::~Channel() { 56 Channel::~Channel() {
59 } 57 }
60 58
61 // static
62 void Channel::SetMessageVerifier(MessageVerifier verifier) {
63 g_message_verifier = verifier;
64 }
65
66 // static
67 Channel::MessageVerifier Channel::GetMessageVerifier() {
68 return g_message_verifier;
69 }
70
71 bool Channel::IsSendThreadSafe() const { 59 bool Channel::IsSendThreadSafe() const {
72 return false; 60 return false;
73 } 61 }
74 62
75 } // namespace IPC 63 } // namespace IPC
76 64
OLDNEW
« no previous file with comments | « ipc/ipc_channel.h ('k') | ipc/ipc_channel_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698