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

Side by Side Diff: third_party/WebKit/Source/web/RemoteFrameOwner.h

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Extend tests, fix redirects. Non-PlzNavigate version still broken. Created 3 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found 2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file. 3 // in the LICENSE file.
4 4
5 #ifndef RemoteFrameOwner_h 5 #ifndef RemoteFrameOwner_h
6 #define RemoteFrameOwner_h 6 #define RemoteFrameOwner_h
7 7
8 #include "core/frame/FrameOwner.h" 8 #include "core/frame/FrameOwner.h"
9 #include "platform/scroll/ScrollTypes.h" 9 #include "platform/scroll/ScrollTypes.h"
10 #include "public/web/WebFrameOwnerProperties.h" 10 #include "public/web/WebFrameOwnerProperties.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 void setScrollingMode(WebFrameOwnerProperties::ScrollingMode); 59 void setScrollingMode(WebFrameOwnerProperties::ScrollingMode);
60 void setMarginWidth(int marginWidth) { m_marginWidth = marginWidth; } 60 void setMarginWidth(int marginWidth) { m_marginWidth = marginWidth; }
61 void setMarginHeight(int marginHeight) { m_marginHeight = marginHeight; } 61 void setMarginHeight(int marginHeight) { m_marginHeight = marginHeight; }
62 void setAllowFullscreen(bool allowFullscreen) { 62 void setAllowFullscreen(bool allowFullscreen) {
63 m_allowFullscreen = allowFullscreen; 63 m_allowFullscreen = allowFullscreen;
64 } 64 }
65 void setAllowPaymentRequest(bool allowPaymentRequest) { 65 void setAllowPaymentRequest(bool allowPaymentRequest) {
66 m_allowPaymentRequest = allowPaymentRequest; 66 m_allowPaymentRequest = allowPaymentRequest;
67 } 67 }
68 void setCollapsedByClient(bool) override;
68 void setCsp(const WebString& csp) { m_csp = csp; } 69 void setCsp(const WebString& csp) { m_csp = csp; }
69 void setDelegatedpermissions( 70 void setDelegatedpermissions(
70 const WebVector<mojom::blink::PermissionName>& delegatedPermissions) { 71 const WebVector<mojom::blink::PermissionName>& delegatedPermissions) {
71 m_delegatedPermissions = delegatedPermissions; 72 m_delegatedPermissions = delegatedPermissions;
72 } 73 }
73 74
74 DECLARE_VIRTUAL_TRACE(); 75 DECLARE_VIRTUAL_TRACE();
75 76
76 private: 77 private:
77 RemoteFrameOwner(SandboxFlags, const WebFrameOwnerProperties&); 78 RemoteFrameOwner(SandboxFlags, const WebFrameOwnerProperties&);
(...skipping 17 matching lines...) Expand all
95 96
96 DEFINE_TYPE_CASTS(RemoteFrameOwner, 97 DEFINE_TYPE_CASTS(RemoteFrameOwner,
97 FrameOwner, 98 FrameOwner,
98 owner, 99 owner,
99 owner->isRemote(), 100 owner->isRemote(),
100 owner.isRemote()); 101 owner.isRemote());
101 102
102 } // namespace blink 103 } // namespace blink
103 104
104 #endif // RemoteFrameOwner_h 105 #endif // RemoteFrameOwner_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698