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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameOwner.h

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 FrameOwner_h 5 #ifndef FrameOwner_h
6 #define FrameOwner_h 6 #define FrameOwner_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/dom/SandboxFlags.h" 9 #include "core/dom/SandboxFlags.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 21 matching lines...) Expand all
32 virtual void clearContentFrame() = 0; 32 virtual void clearContentFrame() = 0;
33 33
34 virtual SandboxFlags getSandboxFlags() const = 0; 34 virtual SandboxFlags getSandboxFlags() const = 0;
35 virtual void dispatchLoad() = 0; 35 virtual void dispatchLoad() = 0;
36 36
37 // On load failure, a frame can ask its owner to render fallback content 37 // On load failure, a frame can ask its owner to render fallback content
38 // which replaces the frame contents. 38 // which replaces the frame contents.
39 virtual bool canRenderFallbackContent() const = 0; 39 virtual bool canRenderFallbackContent() const = 0;
40 virtual void renderFallbackContent() = 0; 40 virtual void renderFallbackContent() = 0;
41 41
42 // Collapses the frame owner, i.e. removes it from the layout of the parent
43 // frame if the owner is an <iframe> element.
44 virtual void setShouldCollapse(bool) {}
45
42 virtual ScrollbarMode scrollingMode() const = 0; 46 virtual ScrollbarMode scrollingMode() const = 0;
43 virtual int marginWidth() const = 0; 47 virtual int marginWidth() const = 0;
44 virtual int marginHeight() const = 0; 48 virtual int marginHeight() const = 0;
45 virtual bool allowFullscreen() const = 0; 49 virtual bool allowFullscreen() const = 0;
46 virtual bool allowPaymentRequest() const = 0; 50 virtual bool allowPaymentRequest() const = 0;
47 virtual AtomicString csp() const = 0; 51 virtual AtomicString csp() const = 0;
48 virtual const WebVector<WebPermissionType>& delegatedPermissions() const = 0; 52 virtual const WebVector<WebPermissionType>& delegatedPermissions() const = 0;
49 }; 53 };
50 54
51 // TODO(dcheng): This class is an internal implementation detail of provisional 55 // TODO(dcheng): This class is an internal implementation detail of provisional
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 private: 87 private:
84 // Intentionally private to prevent redundant checks when the type is 88 // Intentionally private to prevent redundant checks when the type is
85 // already DummyFrameOwner. 89 // already DummyFrameOwner.
86 bool isLocal() const override { return false; } 90 bool isLocal() const override { return false; }
87 bool isRemote() const override { return false; } 91 bool isRemote() const override { return false; }
88 }; 92 };
89 93
90 } // namespace blink 94 } // namespace blink
91 95
92 #endif // FrameOwner_h 96 #endif // FrameOwner_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698