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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameOwner.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 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 // Whether to collapse the frame owner element in the embedder document, that
43 // is, to remove it from the layout as if it did not exist.
44 virtual void setCollapsedByClient(bool) {}
45
42 // Returns the 'name' content attribute value of the browsing context 46 // Returns the 'name' content attribute value of the browsing context
43 // container. 47 // container.
44 // https://html.spec.whatwg.org/multipage/browsers.html#browsing-context-conta iner 48 // https://html.spec.whatwg.org/multipage/browsers.html#browsing-context-conta iner
45 virtual AtomicString browsingContextContainerName() const = 0; 49 virtual AtomicString browsingContextContainerName() const = 0;
46 virtual ScrollbarMode scrollingMode() const = 0; 50 virtual ScrollbarMode scrollingMode() const = 0;
47 virtual int marginWidth() const = 0; 51 virtual int marginWidth() const = 0;
48 virtual int marginHeight() const = 0; 52 virtual int marginHeight() const = 0;
49 virtual bool allowFullscreen() const = 0; 53 virtual bool allowFullscreen() const = 0;
50 virtual bool allowPaymentRequest() const = 0; 54 virtual bool allowPaymentRequest() const = 0;
51 virtual AtomicString csp() const = 0; 55 virtual AtomicString csp() const = 0;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 private: 97 private:
94 // Intentionally private to prevent redundant checks when the type is 98 // Intentionally private to prevent redundant checks when the type is
95 // already DummyFrameOwner. 99 // already DummyFrameOwner.
96 bool isLocal() const override { return false; } 100 bool isLocal() const override { return false; }
97 bool isRemote() const override { return false; } 101 bool isRemote() const override { return false; }
98 }; 102 };
99 103
100 } // namespace blink 104 } // namespace blink
101 105
102 #endif // FrameOwner_h 106 #endif // FrameOwner_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698