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

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

Issue 1232333002: Fix virtual/override/final usage in the rest of Source/core/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/inspector/InspectorDOMAgent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 26 matching lines...) Expand all
37 class ConsoleMessageStorage; 37 class ConsoleMessageStorage;
38 class InjectedScriptManager; 38 class InjectedScriptManager;
39 class InspectorDebuggerAgent; 39 class InspectorDebuggerAgent;
40 40
41 typedef String ErrorString; 41 typedef String ErrorString;
42 42
43 class CORE_EXPORT InspectorConsoleAgent : public InspectorBaseAgent<InspectorCon soleAgent, InspectorFrontend::Console>, public InspectorBackendDispatcher::Conso leCommandHandler { 43 class CORE_EXPORT InspectorConsoleAgent : public InspectorBaseAgent<InspectorCon soleAgent, InspectorFrontend::Console>, public InspectorBackendDispatcher::Conso leCommandHandler {
44 WTF_MAKE_NONCOPYABLE(InspectorConsoleAgent); 44 WTF_MAKE_NONCOPYABLE(InspectorConsoleAgent);
45 public: 45 public:
46 explicit InspectorConsoleAgent(InjectedScriptManager*); 46 explicit InspectorConsoleAgent(InjectedScriptManager*);
47 virtual ~InspectorConsoleAgent(); 47 ~InspectorConsoleAgent() override;
48 DECLARE_VIRTUAL_TRACE(); 48 DECLARE_VIRTUAL_TRACE();
49 49
50 void setDebuggerAgent(InspectorDebuggerAgent* debuggerAgent) { m_debuggerAge nt = debuggerAgent; } 50 void setDebuggerAgent(InspectorDebuggerAgent* debuggerAgent) { m_debuggerAge nt = debuggerAgent; }
51 51
52 void enable(ErrorString*) override; 52 void enable(ErrorString*) override;
53 bool enabled() { return m_enabled; } 53 bool enabled() { return m_enabled; }
54 54
55 void disable(ErrorString*) override; 55 void disable(ErrorString*) override;
56 void restore() override final; 56 void restore() final;
57 57
58 void addMessageToConsole(ConsoleMessage*); 58 void addMessageToConsole(ConsoleMessage*);
59 void consoleMessagesCleared(); 59 void consoleMessagesCleared();
60 60
61 protected: 61 protected:
62 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview); 62 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview);
63 virtual ConsoleMessageStorage* messageStorage() = 0; 63 virtual ConsoleMessageStorage* messageStorage() = 0;
64 64
65 virtual void enableStackCapturingIfNeeded() = 0; 65 virtual void enableStackCapturingIfNeeded() = 0;
66 virtual void disableStackCapturingIfNeeded() = 0; 66 virtual void disableStackCapturingIfNeeded() = 0;
67 67
68 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; 68 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager;
69 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; 69 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent;
70 bool m_enabled; 70 bool m_enabled;
71 }; 71 };
72 72
73 } // namespace blink 73 } // namespace blink
74 74
75 75
76 #endif // !defined(InspectorConsoleAgent_h) 76 #endif // !defined(InspectorConsoleAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/inspector/InspectorDOMAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698