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

Unified Diff: chrome/test/automation/automation_proxy.h

Issue 4202004: Add named testing interface (Closed) Base URL: http://src.chromium.org/svn/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/automation_constants.cc ('k') | chrome/test/automation/automation_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/automation_proxy.h
===================================================================
--- chrome/test/automation/automation_proxy.h (revision 67218)
+++ chrome/test/automation/automation_proxy.h (working copy)
@@ -61,6 +61,17 @@
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();
@@ -208,10 +219,6 @@
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
@@ -263,12 +270,9 @@
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_;
« no previous file with comments | « chrome/common/automation_constants.cc ('k') | chrome/test/automation/automation_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698