| 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> | 10 #include <memory> |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 virtual int ShowContextMenu(ContextMenuClient* client, | 131 virtual int ShowContextMenu(ContextMenuClient* client, |
| 132 const ContextMenuParams& params) = 0; | 132 const ContextMenuParams& params) = 0; |
| 133 | 133 |
| 134 // Cancels a context menu in the event that the client is destroyed before the | 134 // Cancels a context menu in the event that the client is destroyed before the |
| 135 // menu is closed. | 135 // menu is closed. |
| 136 virtual void CancelContextMenu(int request_id) = 0; | 136 virtual void CancelContextMenu(int request_id) = 0; |
| 137 | 137 |
| 138 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no | 138 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no |
| 139 // plugin was found. |throttler| may be empty. | 139 // plugin was found. |throttler| may be empty. |
| 140 virtual blink::WebPlugin* CreatePlugin( | 140 virtual blink::WebPlugin* CreatePlugin( |
| 141 blink::WebFrame* frame, | |
| 142 const WebPluginInfo& info, | 141 const WebPluginInfo& info, |
| 143 const blink::WebPluginParams& params, | 142 const blink::WebPluginParams& params, |
| 144 std::unique_ptr<PluginInstanceThrottler> throttler) = 0; | 143 std::unique_ptr<PluginInstanceThrottler> throttler) = 0; |
| 145 | 144 |
| 146 // The client should handle the navigation externally. | 145 // The client should handle the navigation externally. |
| 147 virtual void LoadURLExternally(const blink::WebURLRequest& request, | 146 virtual void LoadURLExternally(const blink::WebURLRequest& request, |
| 148 blink::WebNavigationPolicy policy) = 0; | 147 blink::WebNavigationPolicy policy) = 0; |
| 149 | 148 |
| 150 // Execute a string of JavaScript in this frame's context. | 149 // Execute a string of JavaScript in this frame's context. |
| 151 virtual void ExecuteJavaScript(const base::string16& javascript) = 0; | 150 virtual void ExecuteJavaScript(const base::string16& javascript) = 0; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 266 |
| 268 private: | 267 private: |
| 269 // This interface should only be implemented inside content. | 268 // This interface should only be implemented inside content. |
| 270 friend class RenderFrameImpl; | 269 friend class RenderFrameImpl; |
| 271 RenderFrame() {} | 270 RenderFrame() {} |
| 272 }; | 271 }; |
| 273 | 272 |
| 274 } // namespace content | 273 } // namespace content |
| 275 | 274 |
| 276 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 275 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| OLD | NEW |