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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 class InspectorFrontend; | 44 class InspectorFrontend; |
45 class InspectorCompositeState; | 45 class InspectorCompositeState; |
46 class InspectorState; | 46 class InspectorState; |
47 class InstrumentingAgents; | 47 class InstrumentingAgents; |
48 class LocalFrame; | 48 class LocalFrame; |
49 | 49 |
50 class CORE_EXPORT InspectorAgent : public NoBaseWillBeGarbageCollectedFinalized<
InspectorAgent> { | 50 class CORE_EXPORT InspectorAgent : public NoBaseWillBeGarbageCollectedFinalized<
InspectorAgent> { |
| 51 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorAgent); |
51 public: | 52 public: |
52 explicit InspectorAgent(const String&); | 53 explicit InspectorAgent(const String&); |
53 virtual ~InspectorAgent(); | 54 virtual ~InspectorAgent(); |
54 DECLARE_VIRTUAL_TRACE(); | 55 DECLARE_VIRTUAL_TRACE(); |
55 | 56 |
56 virtual void init() { } | 57 virtual void init() { } |
57 virtual void setFrontend(InspectorFrontend*) = 0; | 58 virtual void setFrontend(InspectorFrontend*) = 0; |
58 virtual void clearFrontend() = 0; | 59 virtual void clearFrontend() = 0; |
59 virtual void disable(ErrorString*) { } | 60 virtual void disable(ErrorString*) { } |
60 virtual void restore() { } | 61 virtual void restore() { } |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 }; | 136 }; |
136 | 137 |
137 inline bool asBool(const bool* const b) | 138 inline bool asBool(const bool* const b) |
138 { | 139 { |
139 return b ? *b : false; | 140 return b ? *b : false; |
140 } | 141 } |
141 | 142 |
142 } // namespace blink | 143 } // namespace blink |
143 | 144 |
144 #endif // !defined(InspectorBaseAgent_h) | 145 #endif // !defined(InspectorBaseAgent_h) |
OLD | NEW |