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

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

Issue 1238103002: [DevTools] Do not report edited resources via Page.getResourceContent. (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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 ~PageDebuggerAgent() override; 56 ~PageDebuggerAgent() override;
57 DECLARE_VIRTUAL_TRACE(); 57 DECLARE_VIRTUAL_TRACE();
58 58
59 void enable(ErrorString*) final; 59 void enable(ErrorString*) final;
60 void restore() final; 60 void restore() final;
61 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; 61 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 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; 62 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 63
64 void didStartProvisionalLoad(LocalFrame*); 64 void didStartProvisionalLoad(LocalFrame*);
65 void didClearDocumentOfWindowObject(LocalFrame*); 65 void didClearDocumentOfWindowObject(LocalFrame*);
66 void didCommitLoadForLocalFrame(LocalFrame*) override;
67 66
68 protected: 67 protected:
69 void enable() override; 68 void enable() override;
70 void disable() override; 69 void disable() override;
71 70
72 private: 71 private:
73 void startListeningV8Debugger() override; 72 void startListeningV8Debugger() override;
74 void stopListeningV8Debugger() override; 73 void stopListeningV8Debugger() override;
75 void muteConsole() override; 74 void muteConsole() override;
76 void unmuteConsole() override; 75 void unmuteConsole() override;
77 76
78 // InspectorOverlay::Listener implementation. 77 // InspectorOverlay::Listener implementation.
79 void overlayResumed() override; 78 void overlayResumed() override;
80 void overlaySteppedOver() override; 79 void overlaySteppedOver() override;
81 80
82 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte xtId) override; 81 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte xtId) override;
83 bool canExecuteScripts() const; 82 bool canExecuteScripts() const;
84 83
85 PageDebuggerAgent(MainThreadDebugger*, InspectorPageAgent*, InjectedScriptMa nager*, InspectorOverlay*); 84 PageDebuggerAgent(MainThreadDebugger*, InspectorPageAgent*, InjectedScriptMa nager*, InspectorOverlay*);
86 RawPtrWillBeMember<MainThreadDebugger> m_mainThreadDebugger; 85 RawPtrWillBeMember<MainThreadDebugger> m_mainThreadDebugger;
87 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; 86 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
88 RawPtrWillBeMember<InspectorOverlay> m_overlay; 87 RawPtrWillBeMember<InspectorOverlay> m_overlay;
89 HashMap<String, String> m_compiledScriptURLs; 88 HashMap<String, String> m_compiledScriptURLs;
90 }; 89 };
91 90
92 } // namespace blink 91 } // namespace blink
93 92
94 93
95 #endif // !defined(PageDebuggerAgent_h) 94 #endif // !defined(PageDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698