| 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> |
| 11 | 11 |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 #include "content/public/common/console_message_level.h" | 15 #include "content/public/common/console_message_level.h" |
| 16 #include "ipc/ipc_listener.h" | 16 #include "ipc/ipc_listener.h" |
| 17 #include "ipc/ipc_sender.h" | 17 #include "ipc/ipc_sender.h" |
| 18 #include "ppapi/features/features.h" |
| 18 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 19 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 19 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 20 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
| 20 | 21 |
| 21 namespace blink { | 22 namespace blink { |
| 22 class WebFrame; | 23 class WebFrame; |
| 23 class WebLocalFrame; | 24 class WebLocalFrame; |
| 24 class WebPlugin; | 25 class WebPlugin; |
| 25 class WebURLRequest; | 26 class WebURLRequest; |
| 26 struct WebPluginParams; | 27 struct WebPluginParams; |
| 27 } | 28 } |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 157 |
| 157 // Returns the AssociatedInterfaceRegistry this frame can use to expose | 158 // Returns the AssociatedInterfaceRegistry this frame can use to expose |
| 158 // frame-specific Channel-associated interfaces to the remote RenderFrameHost. | 159 // frame-specific Channel-associated interfaces to the remote RenderFrameHost. |
| 159 virtual AssociatedInterfaceRegistry* GetAssociatedInterfaceRegistry() = 0; | 160 virtual AssociatedInterfaceRegistry* GetAssociatedInterfaceRegistry() = 0; |
| 160 | 161 |
| 161 // Returns the AssociatedInterfaceProvider this frame can use to access | 162 // Returns the AssociatedInterfaceProvider this frame can use to access |
| 162 // frame-specific Channel-assocaited interfaces from the remote | 163 // frame-specific Channel-assocaited interfaces from the remote |
| 163 // RenderFrameHost. | 164 // RenderFrameHost. |
| 164 virtual AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() = 0; | 165 virtual AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() = 0; |
| 165 | 166 |
| 166 #if defined(ENABLE_PLUGINS) | 167 #if BUILDFLAG(ENABLE_PLUGINS) |
| 167 // Registers a plugin that has been marked peripheral. If the origin | 168 // Registers a plugin that has been marked peripheral. If the origin |
| 168 // whitelist is later updated and includes |content_origin|, then | 169 // whitelist is later updated and includes |content_origin|, then |
| 169 // |unthrottle_callback| will be called. | 170 // |unthrottle_callback| will be called. |
| 170 virtual void RegisterPeripheralPlugin( | 171 virtual void RegisterPeripheralPlugin( |
| 171 const url::Origin& content_origin, | 172 const url::Origin& content_origin, |
| 172 const base::Closure& unthrottle_callback) = 0; | 173 const base::Closure& unthrottle_callback) = 0; |
| 173 | 174 |
| 174 // Returns the peripheral content heuristic decision. | 175 // Returns the peripheral content heuristic decision. |
| 175 // | 176 // |
| 176 // Power Saver is enabled for plugin content that are cross-origin and | 177 // Power Saver is enabled for plugin content that are cross-origin and |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 247 |
| 247 private: | 248 private: |
| 248 // This interface should only be implemented inside content. | 249 // This interface should only be implemented inside content. |
| 249 friend class RenderFrameImpl; | 250 friend class RenderFrameImpl; |
| 250 RenderFrame() {} | 251 RenderFrame() {} |
| 251 }; | 252 }; |
| 252 | 253 |
| 253 } // namespace content | 254 } // namespace content |
| 254 | 255 |
| 255 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 256 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| OLD | NEW |