| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef InspectedFrames_h | 5 #ifndef InspectedFrames_h |
| 6 #define InspectedFrames_h | 6 #define InspectedFrames_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Forward.h" | 10 #include "wtf/Forward.h" |
| 11 #include "wtf/Noncopyable.h" | 11 #include "wtf/Noncopyable.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class LocalFrame; | 15 class LocalFrame; |
| 16 | 16 |
| 17 class CORE_EXPORT InspectedFrames final : public GarbageCollectedFinalized<Inspe
ctedFrames> { | 17 class CORE_EXPORT InspectedFrames final : public GarbageCollected<InspectedFrame
s> { |
| 18 WTF_MAKE_NONCOPYABLE(InspectedFrames); | 18 WTF_MAKE_NONCOPYABLE(InspectedFrames); |
| 19 public: | 19 public: |
| 20 class CORE_EXPORT Iterator { | 20 class CORE_EXPORT Iterator { |
| 21 STACK_ALLOCATED(); | 21 STACK_ALLOCATED(); |
| 22 public: | 22 public: |
| 23 Iterator operator++(int); | 23 Iterator operator++(int); |
| 24 Iterator& operator++(); | 24 Iterator& operator++(); |
| 25 bool operator==(const Iterator& other); | 25 bool operator==(const Iterator& other); |
| 26 bool operator!=(const Iterator& other); | 26 bool operator!=(const Iterator& other); |
| 27 LocalFrame* operator*() { return m_current; } | 27 LocalFrame* operator*() { return m_current; } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 explicit InspectedFrames(LocalFrame*); | 50 explicit InspectedFrames(LocalFrame*); |
| 51 | 51 |
| 52 Member<LocalFrame> m_root; | 52 Member<LocalFrame> m_root; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace blink | 55 } // namespace blink |
| 56 | 56 |
| 57 #endif // InspectedFrames_h | 57 #endif // InspectedFrames_h |
| OLD | NEW |