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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 private: | 77 private: |
78 Vector<OwnPtr<InspectorBaseAgentInterface> > m_agents; | 78 Vector<OwnPtr<InspectorBaseAgentInterface> > m_agents; |
79 }; | 79 }; |
80 | 80 |
81 template<typename T> | 81 template<typename T> |
82 class InspectorBaseAgent : public InspectorBaseAgentInterface { | 82 class InspectorBaseAgent : public InspectorBaseAgentInterface { |
83 public: | 83 public: |
84 virtual ~InspectorBaseAgent() { } | 84 virtual ~InspectorBaseAgent() { } |
85 | 85 |
86 virtual void registerInDispatcher(InspectorBackendDispatcher* dispatcher) | 86 virtual void registerInDispatcher(InspectorBackendDispatcher* dispatcher) OV
ERRIDE FINAL |
87 { | 87 { |
88 dispatcher->registerAgent(static_cast<T*>(this)); | 88 dispatcher->registerAgent(static_cast<T*>(this)); |
89 } | 89 } |
90 | 90 |
91 protected: | 91 protected: |
92 InspectorBaseAgent(const String& name, InstrumentingAgents* instrumentingAge
nts, InspectorCompositeState* inspectorState) | 92 InspectorBaseAgent(const String& name, InstrumentingAgents* instrumentingAge
nts, InspectorCompositeState* inspectorState) |
93 : InspectorBaseAgentInterface(name, instrumentingAgents, inspectorState) | 93 : InspectorBaseAgentInterface(name, instrumentingAgents, inspectorState) |
94 { | 94 { |
95 } | 95 } |
96 }; | 96 }; |
97 | 97 |
98 } // namespace WebCore | 98 } // namespace WebCore |
99 | 99 |
100 #endif // !defined(InspectorBaseAgent_h) | 100 #endif // !defined(InspectorBaseAgent_h) |
OLD | NEW |