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

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

Issue 1125053002: Move renderFallbackContent() into FrameOwner interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add comment Created 5 years, 7 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 | Annotate | Revision Log
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"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 // Oilpan: all FrameOwner instances are GCed objects. FrameOwner additionally 14 // Oilpan: all FrameOwner instances are GCed objects. FrameOwner additionally
15 // derives from GarbageCollectedMixin so that Member<FrameOwner> references can 15 // derives from GarbageCollectedMixin so that Member<FrameOwner> references can
16 // be kept (e.g., Frame::m_owner.) 16 // be kept (e.g., Frame::m_owner.)
17 class CORE_EXPORT FrameOwner : public WillBeGarbageCollectedMixin { 17 class CORE_EXPORT FrameOwner : public WillBeGarbageCollectedMixin {
18 public: 18 public:
19 virtual ~FrameOwner() { } 19 virtual ~FrameOwner() { }
20 DEFINE_INLINE_VIRTUAL_TRACE() { } 20 DEFINE_INLINE_VIRTUAL_TRACE() { }
21 21
22 virtual bool isLocal() const = 0; 22 virtual bool isLocal() const = 0;
23 23
24 virtual SandboxFlags sandboxFlags() const = 0; 24 virtual SandboxFlags sandboxFlags() const = 0;
25 virtual void dispatchLoad() = 0; 25 virtual void dispatchLoad() = 0;
26
27 // On load failure, a frame can ask its owner to render fallback content
28 // which replaces the frame contents. If this call returns true, no further
29 // processing of the failed load should occur.
30 virtual bool renderFallbackContent() = 0;
26 }; 31 };
27 32
28 } // namespace blink 33 } // namespace blink
29 34
30 #endif // FrameOwner_h 35 #endif // FrameOwner_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLFrameOwnerElement.h » ('j') | Source/core/html/HTMLObjectElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698