| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> |
| 11 |
| 10 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 13 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 14 #include "content/public/common/console_message_level.h" | 15 #include "content/public/common/console_message_level.h" |
| 15 #include "ipc/ipc_listener.h" | 16 #include "ipc/ipc_listener.h" |
| 16 #include "ipc/ipc_sender.h" | 17 #include "ipc/ipc_sender.h" |
| 17 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 18 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
| 18 | 19 |
| 19 class GURL; | 20 class GURL; |
| 20 | 21 |
| 21 namespace blink { | 22 namespace blink { |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 120 |
| 120 // Gets the node that the context menu was pressed over. | 121 // Gets the node that the context menu was pressed over. |
| 121 virtual blink::WebNode GetContextMenuNode() const = 0; | 122 virtual blink::WebNode GetContextMenuNode() const = 0; |
| 122 | 123 |
| 123 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no | 124 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no |
| 124 // plugin was found. |throttler| may be empty. | 125 // plugin was found. |throttler| may be empty. |
| 125 virtual blink::WebPlugin* CreatePlugin( | 126 virtual blink::WebPlugin* CreatePlugin( |
| 126 blink::WebFrame* frame, | 127 blink::WebFrame* frame, |
| 127 const WebPluginInfo& info, | 128 const WebPluginInfo& info, |
| 128 const blink::WebPluginParams& params, | 129 const blink::WebPluginParams& params, |
| 129 scoped_ptr<PluginInstanceThrottler> throttler) = 0; | 130 std::unique_ptr<PluginInstanceThrottler> throttler) = 0; |
| 130 | 131 |
| 131 // The client should handle the navigation externally. | 132 // The client should handle the navigation externally. |
| 132 virtual void LoadURLExternally(const blink::WebURLRequest& request, | 133 virtual void LoadURLExternally(const blink::WebURLRequest& request, |
| 133 blink::WebNavigationPolicy policy) = 0; | 134 blink::WebNavigationPolicy policy) = 0; |
| 134 | 135 |
| 135 // Execute a string of JavaScript in this frame's context. | 136 // Execute a string of JavaScript in this frame's context. |
| 136 virtual void ExecuteJavaScript(const base::string16& javascript) = 0; | 137 virtual void ExecuteJavaScript(const base::string16& javascript) = 0; |
| 137 | 138 |
| 138 // Returns true if this is the main (top-level) frame. | 139 // Returns true if this is the main (top-level) frame. |
| 139 virtual bool IsMainFrame() = 0; | 140 virtual bool IsMainFrame() = 0; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 215 |
| 215 private: | 216 private: |
| 216 // This interface should only be implemented inside content. | 217 // This interface should only be implemented inside content. |
| 217 friend class RenderFrameImpl; | 218 friend class RenderFrameImpl; |
| 218 RenderFrame() {} | 219 RenderFrame() {} |
| 219 }; | 220 }; |
| 220 | 221 |
| 221 } // namespace content | 222 } // namespace content |
| 222 | 223 |
| 223 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 224 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| OLD | NEW |