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

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

Issue 2028523002: Attribute Stuff to Frames with FrameBlamer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: UTC201606010826 Created 4 years, 6 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 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
(...skipping 22 matching lines...) Expand all
33 #include "core/frame/Frame.h" 33 #include "core/frame/Frame.h"
34 #include "core/frame/LocalFrameLifecycleNotifier.h" 34 #include "core/frame/LocalFrameLifecycleNotifier.h"
35 #include "core/frame/LocalFrameLifecycleObserver.h" 35 #include "core/frame/LocalFrameLifecycleObserver.h"
36 #include "core/loader/FrameLoader.h" 36 #include "core/loader/FrameLoader.h"
37 #include "core/page/FrameTree.h" 37 #include "core/page/FrameTree.h"
38 #include "core/paint/PaintPhase.h" 38 #include "core/paint/PaintPhase.h"
39 #include "platform/Supplementable.h" 39 #include "platform/Supplementable.h"
40 #include "platform/graphics/ImageOrientation.h" 40 #include "platform/graphics/ImageOrientation.h"
41 #include "platform/heap/Handle.h" 41 #include "platform/heap/Handle.h"
42 #include "platform/scroll/ScrollTypes.h" 42 #include "platform/scroll/ScrollTypes.h"
43 #include "public/platform/BlameContext.h"
43 #include "wtf/HashSet.h" 44 #include "wtf/HashSet.h"
44 45
45 namespace blink { 46 namespace blink {
46 47
47 class Color; 48 class Color;
48 class Document; 49 class Document;
49 class DragImage; 50 class DragImage;
50 class Editor; 51 class Editor;
51 template <typename Traversal> class EditingAlgorithm; 52 template <typename Traversal> class EditingAlgorithm;
52 class Element; 53 class Element;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 WTF_MAKE_NONCOPYABLE(FrameNavigationDisabler); 308 WTF_MAKE_NONCOPYABLE(FrameNavigationDisabler);
308 STACK_ALLOCATED(); 309 STACK_ALLOCATED();
309 public: 310 public:
310 explicit FrameNavigationDisabler(LocalFrame&); 311 explicit FrameNavigationDisabler(LocalFrame&);
311 ~FrameNavigationDisabler(); 312 ~FrameNavigationDisabler();
312 313
313 private: 314 private:
314 Member<LocalFrame> m_frame; 315 Member<LocalFrame> m_frame;
315 }; 316 };
316 317
318 class ScopedFrameBlamer {
tkent 2016/06/01 23:14:56 Please add a comment that what this class does con
Xiaocheng 2016/06/02 03:17:19 Done.
319 WTF_MAKE_NONCOPYABLE(ScopedFrameBlamer);
320 STACK_ALLOCATED();
321 public:
322 explicit ScopedFrameBlamer(LocalFrame*);
Sami 2016/06/01 11:05:17 Could the parameter be const?
Xiaocheng 2016/06/02 03:17:19 Yes. Done.
323 ~ScopedFrameBlamer();
324
325 private:
326 BlameContext* m_frameBlameContext;
tkent 2016/06/01 23:14:56 Is it safe to hold a raw pointer? Can the BlameCon
Xiaocheng 2016/06/02 03:17:19 FrameBlameContext (the BlameContext subclass for f
327 };
328
317 } // namespace blink 329 } // namespace blink
318 330
319 #endif // LocalFrame_h 331 #endif // LocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698