Chromium Code Reviews| 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 class WebSecurityOrigin; | |
| 15 class WebDOMMessageEvent; | |
| 16 } | |
| 17 | |
| 18 using WebKit::WebDOMMessageEvent; | |
| 19 using WebKit::WebFrame; | |
| 20 using WebKit::WebSecurityOrigin; | |
| 21 using WebKit::WebView; | |
| 22 | |
| 23 namespace content { | |
| 24 | |
| 25 class ProxyViewHost : public WebKit::WebViewClient, | |
|
Charlie Reis
2011/12/12 22:20:36
Let's add comments for this class to explain what
supersat
2011/12/15 19:30:49
I'm probably just going to migrate over to creatin
| |
| 26 public WebKit::WebFrameClient, | |
| 27 // The render view observer is for the owner RV | |
| 28 public RenderViewObserver { | |
| 29 public: | |
| 30 ProxyViewHost(RenderView* owner, int64 opener_browsing_instance_frame_id); | |
| 31 virtual ~ProxyViewHost(); | |
| 32 | |
| 33 WebFrame* mainFrame(); | |
| 34 | |
| 35 // WebFrameClient methods | |
| 36 virtual bool interceptPostMessage(int64 frame_id, | |
| 37 WebSecurityOrigin target, | |
| 38 WebDOMMessageEvent event); | |
| 39 | |
| 40 // RenderViewObserver methods | |
| 41 virtual void Navigate(const GURL& url); | |
| 42 virtual void ClosePage(); | |
| 43 | |
| 44 private: | |
| 45 DISALLOW_COPY_AND_ASSIGN(ProxyViewHost); | |
| 46 int64 opener_browsing_instance_frame_id_; | |
| 47 WebView* webview_; | |
| 48 }; | |
| 49 | |
| 50 } // namespace content | |
| 51 #endif // CONTENT_RENDERER_PROXY_VIEW_HOST_H_ | |
| OLD | NEW |