OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_PROXY_VIEW_HOST_H_ |
| 6 #define CONTENT_RENDERER_PROXY_VIEW_HOST_H_ |
| 7 |
| 8 #include "content/public/renderer/render_view_observer.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" |
| 11 |
| 12 namespace WebKit { |
| 13 class WebView; |
| 14 } |
| 15 |
| 16 using WebKit::WebFrame; |
| 17 using WebKit::WebView; |
| 18 |
| 19 namespace content { |
| 20 |
| 21 class DOMProxyListener; |
| 22 |
| 23 class ProxyViewHost : public WebKit::WebViewClient, |
| 24 public WebKit::WebFrameClient, |
| 25 // The render view observer is for the owner RV |
| 26 public RenderViewObserver { |
| 27 public: |
| 28 ProxyViewHost(RenderView* owner, int64 opener_browsing_instance_frame_id); |
| 29 virtual ~ProxyViewHost(); |
| 30 |
| 31 WebFrame* mainFrame(); |
| 32 |
| 33 // WebFrameClient methods |
| 34 virtual void didFinishDocumentLoad(WebFrame* frame); |
| 35 |
| 36 // RenderViewObserver methods |
| 37 virtual void Navigate(const GURL& url); |
| 38 virtual void ClosePage(); |
| 39 |
| 40 private: |
| 41 DISALLOW_COPY_AND_ASSIGN(ProxyViewHost); |
| 42 int64 opener_browsing_instance_frame_id_; |
| 43 WebView* webview_; |
| 44 DOMProxyListener* dom_proxy_listener_; |
| 45 }; |
| 46 |
| 47 } // namespace content |
| 48 #endif // CONTENT_RENDERER_PROXY_VIEW_HOST_H_ |
OLD | NEW |