Move DOMAutomationController code from chrome to content. This is needed by interstitial pages which are in content, and also browser tests in content.

In followup changes, I'll make interstitial pages not have to derive from a concrete class, and instead implement some sort of delegate interface like we did with WebUI.

BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9310094

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120441 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index b892a80..1d9963a 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -60,6 +60,7 @@
 
 class DeviceOrientationDispatcher;
 class DevToolsAgent;
+class DomAutomationController;
 class ExternalPopupMenu;
 class GeolocationDispatcher;
 class GURL;
@@ -588,7 +589,6 @@
                               bool notify_result) OVERRIDE;
   virtual bool ShouldDisplayScrollbars(int width, int height) const OVERRIDE;
   virtual int GetEnabledBindings() OVERRIDE;
-  virtual void SetEnabledBindings(int enabled_bindings) OVERRIDE;
   virtual bool GetContentStateImmediately() OVERRIDE;
   virtual float GetFilteredTimePerFrame() OVERRIDE;
   virtual void ShowContextMenu(WebKit::WebFrame* frame,
@@ -1250,6 +1250,10 @@
   int focused_plugin_id_;
 #endif
 
+  // Allows JS to access DOM automation. The JS object is only exposed when the
+  // DOM automation bindings are enabled.
+  scoped_ptr<DomAutomationController> dom_automation_controller_;
+
   // NOTE: pepper_delegate_ should be last member because its constructor calls
   // AddObservers method of RenderViewImpl from c-tor.
   PepperPluginDelegateImpl pepper_delegate_;