Index: chrome/test/automation/automation_proxy.h |
diff --git a/chrome/test/automation/automation_proxy.h b/chrome/test/automation/automation_proxy.h |
index 7902ef0bd369a61e9ef87107b8e74075345275f7..853a6d3cfcf0e98239a19b9d7ef2fb0a34b4f88c 100644 |
--- a/chrome/test/automation/automation_proxy.h |
+++ b/chrome/test/automation/automation_proxy.h |
@@ -61,17 +61,6 @@ class AutomationProxy : public IPC::Channel::Listener, |
AutomationProxy(int command_execution_timeout_ms, bool disconnect_on_failure); |
virtual ~AutomationProxy(); |
- // Creates a previously unused channel id. |
- static std::string GenerateChannelID(); |
- |
- // Initializes a channel for a connection to an AutomationProvider. |
- // If use_named_interface is false, it will act as a client |
- // and connect to the named IPC socket with channel_id as its path. |
- // If use_named_interface is true, it will act as a server and |
- // use an anonymous socketpair instead. |
- void InitializeChannel(const std::string& channel_id, |
- bool use_named_interface); |
- |
// IPC callback |
virtual void OnMessageReceived(const IPC::Message& msg); |
virtual void OnChannelError(); |
@@ -219,6 +208,10 @@ class AutomationProxy : public IPC::Channel::Listener, |
const std::string& password) WARN_UNUSED_RESULT; |
#endif |
+ // Returns the ID of the automation IPC channel, so that it can be |
+ // passed to the app as a launch parameter. |
+ const std::string& channel_id() const { return channel_id_; } |
+ |
#if defined(OS_POSIX) |
base::file_handle_mapping_vector fds_to_map() const; |
#endif |
@@ -270,9 +263,12 @@ class AutomationProxy : public IPC::Channel::Listener, |
protected: |
template <class T> scoped_refptr<T> ProxyObjectFromHandle(int handle); |
+ void InitializeChannelID(); |
void InitializeThread(); |
+ void InitializeChannel(); |
void InitializeHandleTracker(); |
+ std::string channel_id_; |
scoped_ptr<base::Thread> thread_; |
scoped_ptr<IPC::SyncChannel> channel_; |
scoped_ptr<AutomationHandleTracker> tracker_; |