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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 */ 25 */
26 26
27 #ifndef DOMTimer_h 27 #ifndef DOMTimer_h
28 #define DOMTimer_h 28 #define DOMTimer_h
29 29
30 #include "bindings/core/v8/ScheduledAction.h" 30 #include "bindings/core/v8/ScheduledAction.h"
31 #include "core/CoreExport.h" 31 #include "core/CoreExport.h"
32 #include "core/frame/SuspendableTimer.h" 32 #include "core/frame/SuspendableTimer.h"
33 #include "platform/UserGestureIndicator.h" 33 #include "platform/UserGestureIndicator.h"
34 #include "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
35 #include "wtf/OwnPtr.h"
36 #include "wtf/PassOwnPtr.h"
37 #include "wtf/RefPtr.h" 35 #include "wtf/RefPtr.h"
38 36
39 namespace blink { 37 namespace blink {
40 38
41 class ExecutionContext; 39 class ExecutionContext;
42 40
43 class CORE_EXPORT DOMTimer final : public GarbageCollectedFinalized<DOMTimer>, p ublic SuspendableTimer { 41 class CORE_EXPORT DOMTimer final : public GarbageCollectedFinalized<DOMTimer>, p ublic SuspendableTimer {
44 USING_GARBAGE_COLLECTED_MIXIN(DOMTimer); 42 USING_GARBAGE_COLLECTED_MIXIN(DOMTimer);
45 public: 43 public:
46 // Creates a new timer owned by the ExecutionContext, starts it and returns its ID. 44 // Creates a new timer owned by the ExecutionContext, starts it and returns its ID.
(...skipping 29 matching lines...) Expand all
76 74
77 int m_timeoutID; 75 int m_timeoutID;
78 int m_nestingLevel; 76 int m_nestingLevel;
79 Member<ScheduledAction> m_action; 77 Member<ScheduledAction> m_action;
80 RefPtr<UserGestureToken> m_userGestureToken; 78 RefPtr<UserGestureToken> m_userGestureToken;
81 }; 79 };
82 80
83 } // namespace blink 81 } // namespace blink
84 82
85 #endif // DOMTimer_h 83 #endif // DOMTimer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698