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

Unified Diff: content/renderer/proxy_view_host.h

Issue 8760024: Cross-process postMessage (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 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
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_

Powered by Google App Engine
This is Rietveld 408576698