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

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

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Moar tests. 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 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 20 matching lines...) Expand all
31 // FrameOwner overrides: 31 // FrameOwner overrides:
32 Frame* contentFrame() const override { return m_frame.get(); } 32 Frame* contentFrame() const override { return m_frame.get(); }
33 void setContentFrame(Frame&) override; 33 void setContentFrame(Frame&) override;
34 void clearContentFrame() override; 34 void clearContentFrame() override;
35 SandboxFlags getSandboxFlags() const override { return m_sandboxFlags; } 35 SandboxFlags getSandboxFlags() const override { return m_sandboxFlags; }
36 void setSandboxFlags(SandboxFlags flags) { m_sandboxFlags = flags; } 36 void setSandboxFlags(SandboxFlags flags) { m_sandboxFlags = flags; }
37 void dispatchLoad() override; 37 void dispatchLoad() override;
38 // TODO(dcheng): Implement. 38 // TODO(dcheng): Implement.
39 bool canRenderFallbackContent() const override { return false; } 39 bool canRenderFallbackContent() const override { return false; }
40 void renderFallbackContent() override {} 40 void renderFallbackContent() override {}
41 void setShouldCollapse(bool) override { NOTREACHED(); }
41 ScrollbarMode scrollingMode() const override { return m_scrolling; } 42 ScrollbarMode scrollingMode() const override { return m_scrolling; }
42 int marginWidth() const override { return m_marginWidth; } 43 int marginWidth() const override { return m_marginWidth; }
43 int marginHeight() const override { return m_marginHeight; } 44 int marginHeight() const override { return m_marginHeight; }
44 bool allowFullscreen() const override { return m_allowFullscreen; } 45 bool allowFullscreen() const override { return m_allowFullscreen; }
45 bool allowPaymentRequest() const override { return m_allowPaymentRequest; } 46 bool allowPaymentRequest() const override { return m_allowPaymentRequest; }
46 AtomicString csp() const override { return m_csp; } 47 AtomicString csp() const override { return m_csp; }
47 const WebVector<WebPermissionType>& delegatedPermissions() const override { 48 const WebVector<WebPermissionType>& delegatedPermissions() const override {
48 return m_delegatedPermissions; 49 return m_delegatedPermissions;
49 } 50 }
50 51
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 87
87 DEFINE_TYPE_CASTS(RemoteFrameOwner, 88 DEFINE_TYPE_CASTS(RemoteFrameOwner,
88 FrameOwner, 89 FrameOwner,
89 owner, 90 owner,
90 owner->isRemote(), 91 owner->isRemote(),
91 owner.isRemote()); 92 owner.isRemote());
92 93
93 } // namespace blink 94 } // namespace blink
94 95
95 #endif // RemoteFrameOwner_h 96 #endif // RemoteFrameOwner_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698