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

Side by Side Diff: third_party/WebKit/Source/core/loader/NavigationScheduler.cpp

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 years, 1 month 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) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
5 * (http://www.torchmobile.com/) 5 * (http://www.torchmobile.com/)
6 * Copyright (C) 2009 Adam Barth. All rights reserved. 6 * Copyright (C) 2009 Adam Barth. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 virtual void fire(LocalFrame*) = 0; 129 virtual void fire(LocalFrame*) = 0;
130 130
131 virtual bool shouldStartTimer(LocalFrame*) { return true; } 131 virtual bool shouldStartTimer(LocalFrame*) { return true; }
132 132
133 double delay() const { return m_delay; } 133 double delay() const { return m_delay; }
134 Document* originDocument() const { return m_originDocument.get(); } 134 Document* originDocument() const { return m_originDocument.get(); }
135 bool replacesCurrentItem() const { return m_replacesCurrentItem; } 135 bool replacesCurrentItem() const { return m_replacesCurrentItem; }
136 bool isLocationChange() const { return m_isLocationChange; } 136 bool isLocationChange() const { return m_isLocationChange; }
137 std::unique_ptr<UserGestureIndicator> createUserGestureIndicator() { 137 std::unique_ptr<UserGestureIndicator> createUserGestureIndicator() {
138 return wrapUnique(new UserGestureIndicator(m_userGestureToken)); 138 return makeUnique<UserGestureIndicator>(m_userGestureToken);
139 } 139 }
140 140
141 DEFINE_INLINE_VIRTUAL_TRACE() { visitor->trace(m_originDocument); } 141 DEFINE_INLINE_VIRTUAL_TRACE() { visitor->trace(m_originDocument); }
142 142
143 protected: 143 protected:
144 void clearUserGesture() { m_userGestureToken.clear(); } 144 void clearUserGesture() { m_userGestureToken.clear(); }
145 145
146 private: 146 private:
147 double m_delay; 147 double m_delay;
148 Member<Document> m_originDocument; 148 Member<Document> m_originDocument;
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 m_navigateTaskFactory->cancel(); 549 m_navigateTaskFactory->cancel();
550 m_redirect.clear(); 550 m_redirect.clear();
551 } 551 }
552 552
553 DEFINE_TRACE(NavigationScheduler) { 553 DEFINE_TRACE(NavigationScheduler) {
554 visitor->trace(m_frame); 554 visitor->trace(m_frame);
555 visitor->trace(m_redirect); 555 visitor->trace(m_redirect);
556 } 556 }
557 557
558 } // namespace blink 558 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/ImageLoader.cpp ('k') | third_party/WebKit/Source/core/loader/ProgressTracker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698