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

Unified Diff: Source/core/fetch/FetchInitiatorInfo.h

Issue 1310643003: Make classes and structures in core/events and core/fetch 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/fetch/FetchInitiatorInfo.h
diff --git a/Source/core/fetch/FetchInitiatorInfo.h b/Source/core/fetch/FetchInitiatorInfo.h
index 8ffbb79dffd12cb9fde9d29928db179ddc9c3c16..25a7b29307beb971e76f26b0c624e746335d1487 100644
--- a/Source/core/fetch/FetchInitiatorInfo.h
+++ b/Source/core/fetch/FetchInitiatorInfo.h
@@ -26,12 +26,14 @@
#ifndef FetchInitiatorInfo_h
#define FetchInitiatorInfo_h
+#include "wtf/Allocator.h"
#include "wtf/text/AtomicString.h"
#include "wtf/text/TextPosition.h"
namespace blink {
struct FetchInitiatorInfo {
+ DISALLOW_ALLOCATION();
FetchInitiatorInfo()
: name()
, position(TextPosition::belowRangePosition())
@@ -48,6 +50,7 @@ struct FetchInitiatorInfo {
// Encode AtomicString as String to cross threads.
struct CrossThreadFetchInitiatorInfoData {
+ DISALLOW_ALLOCATION();
explicit CrossThreadFetchInitiatorInfoData(const FetchInitiatorInfo& info)
: name(info.name.string().isolatedCopy())
, position(info.position)

Powered by Google App Engine
This is Rietveld 408576698