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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/LocalFrame.h
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.h b/third_party/WebKit/Source/core/frame/LocalFrame.h
index 2e8d5735469ca7e5e96efa5604dde3135d0a1b97..12a354f9af4a50a89452c4752566e19203df5208 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -40,6 +40,7 @@
#include "platform/graphics/ImageOrientation.h"
#include "platform/heap/Handle.h"
#include "platform/scroll/ScrollTypes.h"
+#include "public/platform/BlameContext.h"
#include "wtf/HashSet.h"
namespace blink {
@@ -314,6 +315,17 @@ private:
Member<LocalFrame> m_frame;
};
+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.
+ WTF_MAKE_NONCOPYABLE(ScopedFrameBlamer);
+ STACK_ALLOCATED();
+public:
+ explicit ScopedFrameBlamer(LocalFrame*);
Sami 2016/06/01 11:05:17 Could the parameter be const?
Xiaocheng 2016/06/02 03:17:19 Yes. Done.
+ ~ScopedFrameBlamer();
+
+private:
+ 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
+};
+
} // namespace blink
#endif // LocalFrame_h

Powered by Google App Engine
This is Rietveld 408576698