Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: Source/core/inspector/InspectorBaseAgent.h

Issue 135703002: Update inspector classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No change under web/ Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorApplicationCacheAgent.h ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698