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

Side by Side Diff: chrome/browser/automation/automation_provider.h

Issue 6515016: Restart named testing channel on disconnect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Permissions fixes and cleanup. Created 9 years, 10 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 | Annotate | Revision Log
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 // This implements a browser-side endpoint for UI automation activity. 5 // This implements a browser-side endpoint for UI automation activity.
6 // The client-side endpoint is implemented by AutomationProxy. 6 // The client-side endpoint is implemented by AutomationProxy.
7 // The entire lifetime of this object should be contained within that of 7 // The entire lifetime of this object should be contained within that of
8 // the BrowserProcess, and in particular the NotificationService that's 8 // the BrowserProcess, and in particular the NotificationService that's
9 // hung off of it. 9 // hung off of it.
10 10
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 bool with_json, 204 bool with_json,
205 const string16& search_string, 205 const string16& search_string,
206 bool forward, 206 bool forward,
207 bool match_case, 207 bool match_case,
208 bool find_next, 208 bool find_next,
209 IPC::Message* reply_message); 209 IPC::Message* reply_message);
210 210
211 scoped_refptr<AutomationResourceMessageFilter> 211 scoped_refptr<AutomationResourceMessageFilter>
212 automation_resource_message_filter_; 212 automation_resource_message_filter_;
213 213
214 // True iff we should open a new automation IPC channel if it closes.
215 bool reconnect_on_channel_error_;
Nirnimesh 2011/02/17 00:55:12 s/reconnect_on_channel_error_/reinitialize_on_chan
dtu 2011/02/17 02:14:25 Done.
216
214 private: 217 private:
215 void OnUnhandledMessage(); 218 void OnUnhandledMessage();
216 219
220 // Clear and reinitialize the automation IPC channel.
221 bool ReinitializeChannel();
222
217 // IPC Message callbacks. 223 // IPC Message callbacks.
218 void WindowSimulateDrag(int handle, 224 void WindowSimulateDrag(int handle,
219 std::vector<gfx::Point> drag_path, 225 std::vector<gfx::Point> drag_path,
220 int flags, 226 int flags,
221 bool press_escape_en_route, 227 bool press_escape_en_route,
222 IPC::Message* reply_message); 228 IPC::Message* reply_message);
223 void HandleUnused(const IPC::Message& message, int handle); 229 void HandleUnused(const IPC::Message& message, int handle);
224 void SetFilteredInet(const IPC::Message& message, bool enabled); 230 void SetFilteredInet(const IPC::Message& message, bool enabled);
225 void GetFilteredInetHitCount(int* hit_count); 231 void GetFilteredInetHitCount(int* hit_count);
226 void SetProxyConfig(const std::string& new_proxy_config); 232 void SetProxyConfig(const std::string& new_proxy_config);
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 extension_test_result_observer_; 395 extension_test_result_observer_;
390 scoped_ptr<AutomationExtensionTracker> extension_tracker_; 396 scoped_ptr<AutomationExtensionTracker> extension_tracker_;
391 PortContainerMap port_containers_; 397 PortContainerMap port_containers_;
392 398
393 // True iff connected to an AutomationProxy. 399 // True iff connected to an AutomationProxy.
394 bool is_connected_; 400 bool is_connected_;
395 401
396 // True iff browser finished loading initial set of tabs. 402 // True iff browser finished loading initial set of tabs.
397 bool initial_loads_complete_; 403 bool initial_loads_complete_;
398 404
405 // ID of automation channel.
406 std::string channel_id_;
407
399 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); 408 DISALLOW_COPY_AND_ASSIGN(AutomationProvider);
400 }; 409 };
401 410
402 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ 411 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider.cc » ('j') | chrome/browser/automation/automation_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698