Move Find Operations from RenderViewHost to WebContents

BUG=330843

Review URL: https://codereview.chromium.org/128453002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243709 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 52751bc..79dfd00 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -18,6 +18,7 @@
 #include "content/public/browser/page_navigator.h"
 #include "content/public/browser/save_page_type.h"
 #include "content/public/browser/web_ui.h"
+#include "content/public/common/stop_find_action.h"
 #include "ipc/ipc_sender.h"
 #include "third_party/skia/include/core/SkColor.h"
 #include "ui/base/window_open_disposition.h"
@@ -32,6 +33,10 @@
 class TimeTicks;
 }
 
+namespace blink {
+struct WebFindOptions;
+}
+
 namespace gfx {
 class Rect;
 class Size;
@@ -482,6 +487,15 @@
   // removed since we can then embed iframes in different processes.
   virtual bool IsSubframe() const = 0;
 
+  // Finds text on a page.
+  virtual void Find(int request_id,
+                    const base::string16& search_text,
+                    const blink::WebFindOptions& options) = 0;
+
+  // Notifies the renderer that the user has closed the FindInPage window
+  // (and what action to take regarding the selection).
+  virtual void StopFinding(StopFindAction action) = 0;
+
 #if defined(OS_ANDROID)
   CONTENT_EXPORT static WebContents* FromJavaWebContents(
       jobject jweb_contents_android);