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

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

Issue 1291613002: DevTools: make V8DebuggerAgent call Client instead of overriden methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed Client to only return defaultInjectedScript Created 5 years, 4 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerDebuggerAgent); 43 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerDebuggerAgent);
44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerDebuggerAgent); 44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerDebuggerAgent);
45 public: 45 public:
46 static PassOwnPtrWillBeRawPtr<WorkerDebuggerAgent> create(WorkerThreadDebugg er*, WorkerGlobalScope*, InjectedScriptManager*); 46 static PassOwnPtrWillBeRawPtr<WorkerDebuggerAgent> create(WorkerThreadDebugg er*, WorkerGlobalScope*, InjectedScriptManager*);
47 ~WorkerDebuggerAgent() override; 47 ~WorkerDebuggerAgent() override;
48 DECLARE_VIRTUAL_TRACE(); 48 DECLARE_VIRTUAL_TRACE();
49 49
50 private: 50 private:
51 WorkerDebuggerAgent(WorkerThreadDebugger*, WorkerGlobalScope*, InjectedScrip tManager*); 51 WorkerDebuggerAgent(WorkerThreadDebugger*, WorkerGlobalScope*, InjectedScrip tManager*);
52 52
53 // V8DebuggerAgent::Client implemntation.
53 void startListeningV8Debugger() override; 54 void startListeningV8Debugger() override;
54 void stopListeningV8Debugger() override; 55 void stopListeningV8Debugger() override;
55 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte xtId) override; 56 InjectedScript defaultInjectedScript() override;
56 void muteConsole() override; 57 void muteConsole() override;
57 void unmuteConsole() override; 58 void unmuteConsole() override;
58 59
59 WorkerThreadDebugger* m_workerThreadDebugger; 60 WorkerThreadDebugger* m_workerThreadDebugger;
60 RawPtrWillBeMember<WorkerGlobalScope> m_inspectedWorkerGlobalScope; 61 RawPtrWillBeMember<WorkerGlobalScope> m_inspectedWorkerGlobalScope;
61 }; 62 };
62 63
63 } // namespace blink 64 } // namespace blink
64 65
65 #endif // !defined(WorkerDebuggerAgent_h) 66 #endif // !defined(WorkerDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698