| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "ipc/ipc_listener.h" | 10 #include "ipc/ipc_listener.h" |
| 11 #include "ipc/ipc_sender.h" | 11 #include "ipc/ipc_sender.h" |
| 12 // TODO(dcheng): Convert back to a forward declare. |
| 13 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 12 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 14 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
| 13 | 15 |
| 14 struct WebPreferences; | 16 struct WebPreferences; |
| 15 | 17 |
| 16 namespace blink { | 18 namespace blink { |
| 17 class WebFrame; | 19 class WebFrame; |
| 18 class WebNode; | 20 class WebNode; |
| 19 class WebPlugin; | 21 class WebPlugin; |
| 20 class WebURLRequest; | 22 class WebURLRequest; |
| 21 struct WebPluginParams; | 23 struct WebPluginParams; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual blink::WebNode GetContextMenuNode() const = 0; | 72 virtual blink::WebNode GetContextMenuNode() const = 0; |
| 71 | 73 |
| 72 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no | 74 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no |
| 73 // plugin was found. | 75 // plugin was found. |
| 74 virtual blink::WebPlugin* CreatePlugin( | 76 virtual blink::WebPlugin* CreatePlugin( |
| 75 blink::WebFrame* frame, | 77 blink::WebFrame* frame, |
| 76 const WebPluginInfo& info, | 78 const WebPluginInfo& info, |
| 77 const blink::WebPluginParams& params) = 0; | 79 const blink::WebPluginParams& params) = 0; |
| 78 | 80 |
| 79 // The client should handle the navigation externally. | 81 // The client should handle the navigation externally. |
| 80 virtual void LoadURLExternally( | 82 virtual void LoadURLExternally(blink::WebLocalFrame* frame, |
| 81 blink::WebFrame* frame, | 83 const blink::WebURLRequest& request, |
| 82 const blink::WebURLRequest& request, | 84 blink::WebNavigationPolicy policy) = 0; |
| 83 blink::WebNavigationPolicy policy) = 0; | |
| 84 | 85 |
| 85 // Execute a string of JavaScript in this frame's context. | 86 // Execute a string of JavaScript in this frame's context. |
| 86 virtual void ExecuteJavaScript(const base::string16& javascript) = 0; | 87 virtual void ExecuteJavaScript(const base::string16& javascript) = 0; |
| 87 | 88 |
| 88 protected: | 89 protected: |
| 89 virtual ~RenderFrame() {} | 90 virtual ~RenderFrame() {} |
| 90 | 91 |
| 91 private: | 92 private: |
| 92 // This interface should only be implemented inside content. | 93 // This interface should only be implemented inside content. |
| 93 friend class RenderFrameImpl; | 94 friend class RenderFrameImpl; |
| 94 RenderFrame() {} | 95 RenderFrame() {} |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace content | 98 } // namespace content |
| 98 | 99 |
| 99 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 100 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| OLD | NEW |