Index: content/renderer/proxy_view_host.h |
diff --git a/content/renderer/proxy_view_host.h b/content/renderer/proxy_view_host.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bcf8854b0721ce97eec8a5400e1aac657ec6b3f2 |
--- /dev/null |
+++ b/content/renderer/proxy_view_host.h |
@@ -0,0 +1,48 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_RENDERER_PROXY_VIEW_HOST_H_ |
+#define CONTENT_RENDERER_PROXY_VIEW_HOST_H_ |
+ |
+#include "content/public/renderer/render_view_observer.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" |
+ |
+namespace WebKit { |
+class WebView; |
+} |
+ |
+using WebKit::WebFrame; |
+using WebKit::WebView; |
+ |
+namespace content { |
+ |
+class DOMProxyListener; |
+ |
+class ProxyViewHost : public WebKit::WebViewClient, |
+ public WebKit::WebFrameClient, |
+ // The render view observer is for the owner RV |
+ public RenderViewObserver { |
+ public: |
+ ProxyViewHost(RenderView* owner, int64 opener_browsing_instance_frame_id); |
+ virtual ~ProxyViewHost(); |
+ |
+ WebFrame* mainFrame(); |
+ |
+ // WebFrameClient methods |
+ virtual void didFinishDocumentLoad(WebFrame* frame); |
+ |
+ // RenderViewObserver methods |
+ virtual void Navigate(const GURL& url); |
+ virtual void ClosePage(); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(ProxyViewHost); |
+ int64 opener_browsing_instance_frame_id_; |
+ WebView* webview_; |
+ DOMProxyListener* dom_proxy_listener_; |
+}; |
+ |
+} // namespace content |
+#endif // CONTENT_RENDERER_PROXY_VIEW_HOST_H_ |