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

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

Issue 2566583002: Change allowed bindings to be per RenderFrame instead of per RenderView. (Closed)
Patch Set: rebase Created 3 years, 11 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
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>
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // Whether or not this frame is currently pasting. 237 // Whether or not this frame is currently pasting.
238 virtual bool IsPasting() const = 0; 238 virtual bool IsPasting() const = 0;
239 239
240 // Returns the current visibility of the frame. 240 // Returns the current visibility of the frame.
241 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; 241 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0;
242 242
243 // If PlzNavigate is enabled, returns true in between teh time that Blink 243 // If PlzNavigate is enabled, returns true in between teh time that Blink
244 // requests navigation until the browser responds with the result. 244 // requests navigation until the browser responds with the result.
245 virtual bool IsBrowserSideNavigationPending() = 0; 245 virtual bool IsBrowserSideNavigationPending() = 0;
246 246
247 // Bitwise-ORed set of extra bindings that have been enabled. See
248 // BindingsPolicy for details.
249 virtual int GetEnabledBindings() const = 0;
250
247 protected: 251 protected:
248 ~RenderFrame() override {} 252 ~RenderFrame() override {}
249 253
250 private: 254 private:
251 // This interface should only be implemented inside content. 255 // This interface should only be implemented inside content.
252 friend class RenderFrameImpl; 256 friend class RenderFrameImpl;
253 RenderFrame() {} 257 RenderFrame() {}
254 }; 258 };
255 259
256 } // namespace content 260 } // namespace content
257 261
258 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 262 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698