OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 #include "wtf/RefPtr.h" | 35 #include "wtf/RefPtr.h" |
36 #include "wtf/Vector.h" | 36 #include "wtf/Vector.h" |
37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class ExceptionState; | 41 class ExceptionState; |
42 | 42 |
43 class InspectorHistory FINAL : public NoBaseWillBeGarbageCollected<InspectorHist
ory> { | 43 class InspectorHistory final : public NoBaseWillBeGarbageCollected<InspectorHist
ory> { |
44 WTF_MAKE_NONCOPYABLE(InspectorHistory); | 44 WTF_MAKE_NONCOPYABLE(InspectorHistory); |
45 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 45 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
46 public: | 46 public: |
47 class Action : public RefCountedWillBeGarbageCollectedFinalized<Action> { | 47 class Action : public RefCountedWillBeGarbageCollectedFinalized<Action> { |
48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
49 public: | 49 public: |
50 explicit Action(const String& name); | 50 explicit Action(const String& name); |
51 virtual ~Action(); | 51 virtual ~Action(); |
52 virtual void trace(Visitor*); | 52 virtual void trace(Visitor*); |
53 virtual String toString(); | 53 virtual String toString(); |
(...skipping 23 matching lines...) Expand all Loading... |
77 | 77 |
78 private: | 78 private: |
79 WillBeHeapVector<RefPtrWillBeMember<Action> > m_history; | 79 WillBeHeapVector<RefPtrWillBeMember<Action> > m_history; |
80 size_t m_afterLastActionIndex; | 80 size_t m_afterLastActionIndex; |
81 }; | 81 }; |
82 | 82 |
83 | 83 |
84 } // namespace blink | 84 } // namespace blink |
85 | 85 |
86 #endif // !defined(InspectorHistory_h) | 86 #endif // !defined(InspectorHistory_h) |
OLD | NEW |