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 "platform/wtf/Forward.h" | 10 #include "platform/wtf/Forward.h" |
11 #include "platform/wtf/Noncopyable.h" | 11 #include "platform/wtf/Noncopyable.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
| 15 class ExecutionContext; |
15 class LocalFrame; | 16 class LocalFrame; |
16 | 17 |
17 class CORE_EXPORT InspectedFrames final | 18 class CORE_EXPORT InspectedFrames final |
18 : public GarbageCollected<InspectedFrames> { | 19 : public GarbageCollected<InspectedFrames> { |
19 WTF_MAKE_NONCOPYABLE(InspectedFrames); | 20 WTF_MAKE_NONCOPYABLE(InspectedFrames); |
20 | 21 |
21 public: | 22 public: |
22 class CORE_EXPORT Iterator { | 23 class CORE_EXPORT Iterator { |
23 STACK_ALLOCATED(); | 24 STACK_ALLOCATED(); |
24 | 25 |
(...skipping 11 matching lines...) Expand all Loading... |
36 Member<LocalFrame> root_; | 37 Member<LocalFrame> root_; |
37 Member<LocalFrame> current_; | 38 Member<LocalFrame> current_; |
38 }; | 39 }; |
39 | 40 |
40 static InspectedFrames* Create(LocalFrame* root) { | 41 static InspectedFrames* Create(LocalFrame* root) { |
41 return new InspectedFrames(root); | 42 return new InspectedFrames(root); |
42 } | 43 } |
43 | 44 |
44 LocalFrame* Root() { return root_; } | 45 LocalFrame* Root() { return root_; } |
45 bool Contains(LocalFrame*) const; | 46 bool Contains(LocalFrame*) const; |
| 47 bool Contains(ExecutionContext*) const; |
46 LocalFrame* FrameWithSecurityOrigin(const String& origin_raw_string); | 48 LocalFrame* FrameWithSecurityOrigin(const String& origin_raw_string); |
47 Iterator begin(); | 49 Iterator begin(); |
48 Iterator end(); | 50 Iterator end(); |
49 | 51 |
50 DECLARE_VIRTUAL_TRACE(); | 52 DECLARE_VIRTUAL_TRACE(); |
51 | 53 |
52 private: | 54 private: |
53 explicit InspectedFrames(LocalFrame*); | 55 explicit InspectedFrames(LocalFrame*); |
54 | 56 |
55 Member<LocalFrame> root_; | 57 Member<LocalFrame> root_; |
56 }; | 58 }; |
57 | 59 |
58 } // namespace blink | 60 } // namespace blink |
59 | 61 |
60 #endif // InspectedFrames_h | 62 #endif // InspectedFrames_h |
OLD | NEW |