OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 23 matching lines...) Expand all Loading... |
34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
35 #include "core/InspectorBackendDispatcher.h" | 35 #include "core/InspectorBackendDispatcher.h" |
36 #include "core/inspector/InstrumentingAgents.h" | 36 #include "core/inspector/InstrumentingAgents.h" |
37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
38 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
39 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
| 44 class DartInspectorDebuggerAgent; |
44 class InspectorFrontend; | 45 class InspectorFrontend; |
45 class InspectorCompositeState; | 46 class InspectorCompositeState; |
46 class InspectorState; | 47 class InspectorState; |
47 class InstrumentingAgents; | 48 class InstrumentingAgents; |
48 class LocalFrame; | 49 class LocalFrame; |
49 | 50 |
50 class CORE_EXPORT InspectorAgent : public NoBaseWillBeGarbageCollectedFinalized<
InspectorAgent> { | 51 class CORE_EXPORT InspectorAgent : public NoBaseWillBeGarbageCollectedFinalized<
InspectorAgent> { |
51 public: | 52 public: |
52 explicit InspectorAgent(const String&); | 53 explicit InspectorAgent(const String&); |
53 virtual ~InspectorAgent(); | 54 virtual ~InspectorAgent(); |
(...skipping 11 matching lines...) Expand all Loading... |
65 | 66 |
66 String name() const { return m_name; } | 67 String name() const { return m_name; } |
67 void appended(InstrumentingAgents*, InspectorState*); | 68 void appended(InstrumentingAgents*, InspectorState*); |
68 | 69 |
69 protected: | 70 protected: |
70 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 71 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
71 RawPtrWillBeMember<InspectorState> m_state; | 72 RawPtrWillBeMember<InspectorState> m_state; |
72 | 73 |
73 private: | 74 private: |
74 String m_name; | 75 String m_name; |
| 76 |
| 77 friend class DartInspectorDebuggerAgent; |
75 }; | 78 }; |
76 | 79 |
77 class CORE_EXPORT InspectorAgentRegistry final { | 80 class CORE_EXPORT InspectorAgentRegistry final { |
78 DISALLOW_ALLOCATION(); | 81 DISALLOW_ALLOCATION(); |
79 WTF_MAKE_NONCOPYABLE(InspectorAgentRegistry); | 82 WTF_MAKE_NONCOPYABLE(InspectorAgentRegistry); |
80 public: | 83 public: |
81 InspectorAgentRegistry(InstrumentingAgents*, InspectorCompositeState*); | 84 InspectorAgentRegistry(InstrumentingAgents*, InspectorCompositeState*); |
82 void append(PassOwnPtrWillBeRawPtr<InspectorAgent>); | 85 void append(PassOwnPtrWillBeRawPtr<InspectorAgent>); |
83 | 86 |
84 void setFrontend(InspectorFrontend*); | 87 void setFrontend(InspectorFrontend*); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 }; | 138 }; |
136 | 139 |
137 inline bool asBool(const bool* const b) | 140 inline bool asBool(const bool* const b) |
138 { | 141 { |
139 return b ? *b : false; | 142 return b ? *b : false; |
140 } | 143 } |
141 | 144 |
142 } // namespace blink | 145 } // namespace blink |
143 | 146 |
144 #endif // !defined(InspectorBaseAgent_h) | 147 #endif // !defined(InspectorBaseAgent_h) |
OLD | NEW |