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

Side by Side Diff: ipc/ipc_channel.h

Issue 5139001: Revert 66350 - Add named testing interface. This allows you to connect to a p... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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
« no previous file with comments | « chrome_frame/test/net/test_automation_provider.cc ('k') | ipc/ipc_channel_posix.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 IPC_IPC_CHANNEL_H_ 5 #ifndef IPC_IPC_CHANNEL_H_
6 #define IPC_IPC_CHANNEL_H_ 6 #define IPC_IPC_CHANNEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
(...skipping 20 matching lines...) Expand all
31 virtual void OnChannelConnected(int32 peer_pid) {} 31 virtual void OnChannelConnected(int32 peer_pid) {}
32 32
33 // Called when an error is detected that causes the channel to close. 33 // Called when an error is detected that causes the channel to close.
34 // This method is not called when a channel is closed normally. 34 // This method is not called when a channel is closed normally.
35 virtual void OnChannelError() {} 35 virtual void OnChannelError() {}
36 }; 36 };
37 37
38 enum Mode { 38 enum Mode {
39 MODE_NONE, 39 MODE_NONE,
40 MODE_SERVER, 40 MODE_SERVER,
41 MODE_CLIENT, 41 MODE_CLIENT
42 MODE_NAMED_SERVER,
43 MODE_NAMED_CLIENT
44 }; 42 };
45 43
46 enum { 44 enum {
47 // The maximum message size in bytes. Attempting to receive a 45 // The maximum message size in bytes. Attempting to receive a
48 // message of this size or bigger results in a channel error. 46 // message of this size or bigger results in a channel error.
49 kMaximumMessageSize = 256 * 1024 * 1024, 47 kMaximumMessageSize = 256 * 1024 * 1024,
50 48
51 // Ammount of data to read at once from the pipe. 49 // Ammount of data to read at once from the pipe.
52 kReadBufferSize = 4 * 1024 50 kReadBufferSize = 4 * 1024
53 }; 51 };
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 HELLO_MESSAGE_TYPE = kuint16max // Maximum value of message type (uint16), 114 HELLO_MESSAGE_TYPE = kuint16max // Maximum value of message type (uint16),
117 // to avoid conflicting with normal 115 // to avoid conflicting with normal
118 // message types, which are enumeration 116 // message types, which are enumeration
119 // constants starting from 0. 117 // constants starting from 0.
120 }; 118 };
121 }; 119 };
122 120
123 } // namespace IPC 121 } // namespace IPC
124 122
125 #endif // IPC_IPC_CHANNEL_H_ 123 #endif // IPC_IPC_CHANNEL_H_
OLDNEW
« no previous file with comments | « chrome_frame/test/net/test_automation_provider.cc ('k') | ipc/ipc_channel_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698