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

Side by Side Diff: content/public/browser/render_frame_host.h

Issue 2883213002: Add tests for FeaturePolicy integration with RenderFrameHost (Closed)
Patch Set: Add tests for FeaturePolicy integration with RenderFrameHost Created 3 years, 7 months 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/browser/frame_host/render_frame_host_impl.h ('k') | content/test/BUILD.gn » ('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_BROWSER_RENDER_FRAME_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // process. 254 // process.
255 virtual service_manager::InterfaceProvider* GetJavaInterfaces() = 0; 255 virtual service_manager::InterfaceProvider* GetJavaInterfaces() = 0;
256 #endif // OS_ANDROID 256 #endif // OS_ANDROID
257 257
258 // Stops and disables the hang monitor for beforeunload. This avoids flakiness 258 // Stops and disables the hang monitor for beforeunload. This avoids flakiness
259 // in tests that need to observe beforeunload dialogs, which could fail if the 259 // in tests that need to observe beforeunload dialogs, which could fail if the
260 // timeout skips the dialog. 260 // timeout skips the dialog.
261 virtual void DisableBeforeUnloadHangMonitorForTesting() = 0; 261 virtual void DisableBeforeUnloadHangMonitorForTesting() = 0;
262 virtual bool IsBeforeUnloadHangMonitorDisabledForTesting() = 0; 262 virtual bool IsBeforeUnloadHangMonitorDisabledForTesting() = 0;
263 263
264 // Returns true if the given Feature Policy |feature| is enabled for this
265 // RenderFrameHost and is allowed to be used by it. Use this in the browser
266 // process to determine whether access to a feature is allowed.
264 virtual bool IsFeatureEnabled(blink::WebFeaturePolicyFeature feature) = 0; 267 virtual bool IsFeatureEnabled(blink::WebFeaturePolicyFeature feature) = 0;
265 268
266 private: 269 private:
267 // This interface should only be implemented inside content. 270 // This interface should only be implemented inside content.
268 friend class RenderFrameHostImpl; 271 friend class RenderFrameHostImpl;
269 RenderFrameHost() {} 272 RenderFrameHost() {}
270 }; 273 };
271 274
272 } // namespace content 275 } // namespace content
273 276
274 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 277 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698