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

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

Issue 1225763002: Remove debugger id, use local frame id instead. (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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class InspectorPageAgent; 46 class InspectorPageAgent;
47 class MainThreadDebugger; 47 class MainThreadDebugger;
48 48
49 class CORE_EXPORT PageDebuggerAgent final 49 class CORE_EXPORT PageDebuggerAgent final
50 : public InspectorDebuggerAgent 50 : public InspectorDebuggerAgent
51 , public InspectorOverlay::Listener { 51 , public InspectorOverlay::Listener {
52 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent); 52 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent);
53 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PageDebuggerAgent); 53 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PageDebuggerAgent);
54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PageDebuggerAgent); 54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PageDebuggerAgent);
55 public: 55 public:
56 static PassOwnPtrWillBeRawPtr<PageDebuggerAgent> create(MainThreadDebugger*, InspectorPageAgent*, InjectedScriptManager*, InspectorOverlay*, int debuggerId) ; 56 static PassOwnPtrWillBeRawPtr<PageDebuggerAgent> create(MainThreadDebugger*, InspectorPageAgent*, InjectedScriptManager*, InspectorOverlay*);
57 ~PageDebuggerAgent() override; 57 ~PageDebuggerAgent() override;
58 DECLARE_VIRTUAL_TRACE(); 58 DECLARE_VIRTUAL_TRACE();
59 59
60 void enable(ErrorString*) final; 60 void enable(ErrorString*) final;
61 void restore() final; 61 void restore() final;
62 void compileScript(ErrorString*, const String& expression, const String& sou rceURL, bool persistScript, const int* executionContextId, TypeBuilder::OptOutpu t<TypeBuilder::Debugger::ScriptId>*, RefPtr<TypeBuilder::Debugger::ExceptionDeta ils>&) override; 62 void compileScript(ErrorString*, const String& expression, const String& sou rceURL, bool persistScript, const int* executionContextId, TypeBuilder::OptOutpu t<TypeBuilder::Debugger::ScriptId>*, RefPtr<TypeBuilder::Debugger::ExceptionDeta ils>&) override;
63 void runScript(ErrorString*, const TypeBuilder::Debugger::ScriptId&, const i nt* executionContextId, const String* objectGroup, const bool* doNotPauseOnExcep tionsAndMuteConsole, RefPtr<TypeBuilder::Runtime::RemoteObject>& result, RefPtr< TypeBuilder::Debugger::ExceptionDetails>&) override; 63 void runScript(ErrorString*, const TypeBuilder::Debugger::ScriptId&, const i nt* executionContextId, const String* objectGroup, const bool* doNotPauseOnExcep tionsAndMuteConsole, RefPtr<TypeBuilder::Runtime::RemoteObject>& result, RefPtr< TypeBuilder::Debugger::ExceptionDetails>&) override;
64 64
65 void didStartProvisionalLoad(LocalFrame*); 65 void didStartProvisionalLoad(LocalFrame*);
66 void didClearDocumentOfWindowObject(LocalFrame*); 66 void didClearDocumentOfWindowObject(LocalFrame*);
(...skipping 10 matching lines...) Expand all
77 void muteConsole() override; 77 void muteConsole() override;
78 void unmuteConsole() override; 78 void unmuteConsole() override;
79 79
80 // InspectorOverlay::Listener implementation. 80 // InspectorOverlay::Listener implementation.
81 void overlayResumed() override; 81 void overlayResumed() override;
82 void overlaySteppedOver() override; 82 void overlaySteppedOver() override;
83 83
84 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte xtId) override; 84 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte xtId) override;
85 bool canExecuteScripts() const; 85 bool canExecuteScripts() const;
86 86
87 PageDebuggerAgent(MainThreadDebugger*, InspectorPageAgent*, InjectedScriptMa nager*, InspectorOverlay*, int debuggerId); 87 PageDebuggerAgent(MainThreadDebugger*, InspectorPageAgent*, InjectedScriptMa nager*, InspectorOverlay*);
88 RawPtrWillBeMember<MainThreadDebugger> m_mainThreadDebugger; 88 RawPtrWillBeMember<MainThreadDebugger> m_mainThreadDebugger;
89 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; 89 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
90 RawPtrWillBeMember<InspectorOverlay> m_overlay; 90 RawPtrWillBeMember<InspectorOverlay> m_overlay;
91 int m_debuggerId;
92 HashMap<String, String> m_compiledScriptURLs; 91 HashMap<String, String> m_compiledScriptURLs;
93 }; 92 };
94 93
95 } // namespace blink 94 } // namespace blink
96 95
97 96
98 #endif // !defined(PageDebuggerAgent_h) 97 #endif // !defined(PageDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698