Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: content/public/renderer/render_frame.h

Issue 2512563003: Convert enable_plugins to a buildflag header. (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/renderer/BUILD.gn ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/public/renderer/BUILD.gn ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698