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

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

Issue 1315783003: Make classes and structures in core/frame fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « Source/core/frame/EventHandlerRegistry.h ('k') | Source/core/frame/FrameConsole.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 FrameClient_h 5 #ifndef FrameClient_h
6 #define FrameClient_h 6 #define FrameClient_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "wtf/FastAllocBase.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 class Frame; 13 class Frame;
13 class LocalFrame; 14 class LocalFrame;
14 class MessageEvent; 15 class MessageEvent;
15 class SecurityOrigin; 16 class SecurityOrigin;
16 enum class FrameDetachType; 17 enum class FrameDetachType;
17 18
18 class CORE_EXPORT FrameClient { 19 class CORE_EXPORT FrameClient {
20 WTF_MAKE_FAST_ALLOCATED(FrameClient);
haraken 2015/08/25 09:33:02 This was moved to the heap by yutak@. Let's rebase
tasak 2015/08/26 04:15:02 Done.
19 public: 21 public:
20 virtual bool inShadowTree() const = 0; 22 virtual bool inShadowTree() const = 0;
21 23
22 // TODO(dcheng): Move this into FrameLoaderClient, since remote frames don't 24 // TODO(dcheng): Move this into FrameLoaderClient, since remote frames don't
23 // need this. 25 // need this.
24 virtual void willBeDetached() = 0; 26 virtual void willBeDetached() = 0;
25 virtual void detached(FrameDetachType) = 0; 27 virtual void detached(FrameDetachType) = 0;
26 28
27 virtual Frame* opener() const = 0; 29 virtual Frame* opener() const = 0;
28 virtual void setOpener(Frame*) = 0; 30 virtual void setOpener(Frame*) = 0;
29 31
30 virtual Frame* parent() const = 0; 32 virtual Frame* parent() const = 0;
31 virtual Frame* top() const = 0; 33 virtual Frame* top() const = 0;
32 virtual Frame* previousSibling() const = 0; 34 virtual Frame* previousSibling() const = 0;
33 virtual Frame* nextSibling() const = 0; 35 virtual Frame* nextSibling() const = 0;
34 virtual Frame* firstChild() const = 0; 36 virtual Frame* firstChild() const = 0;
35 virtual Frame* lastChild() const = 0; 37 virtual Frame* lastChild() const = 0;
36 38
37 virtual unsigned backForwardLength() = 0; 39 virtual unsigned backForwardLength() = 0;
38 40
39 // Returns true if the embedder intercepted the postMessage call 41 // Returns true if the embedder intercepted the postMessage call
40 virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin* /*target*/, Me ssageEvent*, LocalFrame* /*sourceFrame*/) const { return false; } 42 virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin* /*target*/, Me ssageEvent*, LocalFrame* /*sourceFrame*/) const { return false; }
41 43
42 virtual ~FrameClient() { } 44 virtual ~FrameClient() { }
43 }; 45 };
44 46
45 } // namespace blink 47 } // namespace blink
46 48
47 #endif // FrameClient_h 49 #endif // FrameClient_h
OLDNEW
« no previous file with comments | « Source/core/frame/EventHandlerRegistry.h ('k') | Source/core/frame/FrameConsole.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698