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

Side by Side Diff: Source/WebCore/inspector/PageRuntimeAgent.h

Issue 10779021: Merge 120822 - Web Inspector: don't report context ids before DidCommitLoad (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 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
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 22 matching lines...) Expand all
33 33
34 #if ENABLE(INSPECTOR) 34 #if ENABLE(INSPECTOR)
35 35
36 #include "InspectorFrontend.h" 36 #include "InspectorFrontend.h"
37 #include "InspectorRuntimeAgent.h" 37 #include "InspectorRuntimeAgent.h"
38 #include "ScriptState.h" 38 #include "ScriptState.h"
39 #include <wtf/PassOwnPtr.h> 39 #include <wtf/PassOwnPtr.h>
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
43 class InspectorAgent;
43 class InspectorPageAgent; 44 class InspectorPageAgent;
44 class Page; 45 class Page;
45 class SecurityOrigin; 46 class SecurityOrigin;
46 47
47 class PageRuntimeAgent : public InspectorRuntimeAgent { 48 class PageRuntimeAgent : public InspectorRuntimeAgent {
48 public: 49 public:
49 static PassOwnPtr<PageRuntimeAgent> create(InstrumentingAgents* instrumentin gAgents, InspectorState* state, InjectedScriptManager* injectedScriptManager, Pa ge* page, InspectorPageAgent* pageAgent) 50 static PassOwnPtr<PageRuntimeAgent> create(InstrumentingAgents* instrumentin gAgents, InspectorState* state, InjectedScriptManager* injectedScriptManager, Pa ge* page, InspectorPageAgent* pageAgent, InspectorAgent* inspectorAgent)
50 { 51 {
51 return adoptPtr(new PageRuntimeAgent(instrumentingAgents, state, injecte dScriptManager, page, pageAgent)); 52 return adoptPtr(new PageRuntimeAgent(instrumentingAgents, state, injecte dScriptManager, page, pageAgent, inspectorAgent));
52 } 53 }
53 virtual ~PageRuntimeAgent(); 54 virtual ~PageRuntimeAgent();
54 virtual void setFrontend(InspectorFrontend*); 55 virtual void setFrontend(InspectorFrontend*);
55 virtual void clearFrontend(); 56 virtual void clearFrontend();
56 virtual void restore(); 57 virtual void restore();
57 virtual void setReportExecutionContextCreation(ErrorString*, bool); 58 virtual void setReportExecutionContextCreation(ErrorString*, bool);
58 59
59 void didClearWindowObject(Frame*); 60 void didClearWindowObject(Frame*);
60 void didCreateIsolatedContext(Frame*, ScriptState*, SecurityOrigin*); 61 void didCreateIsolatedContext(Frame*, ScriptState*, SecurityOrigin*);
61 62
62 private: 63 private:
63 PageRuntimeAgent(InstrumentingAgents*, InspectorState*, InjectedScriptManage r*, Page*, InspectorPageAgent*); 64 PageRuntimeAgent(InstrumentingAgents*, InspectorState*, InjectedScriptManage r*, Page*, InspectorPageAgent*, InspectorAgent*);
64 65
65 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut ionContextId); 66 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut ionContextId);
66 virtual void muteConsole(); 67 virtual void muteConsole();
67 virtual void unmuteConsole(); 68 virtual void unmuteConsole();
68 void notifyContextCreated(const String& frameId, ScriptState*, SecurityOrigi n*, bool isPageContext); 69 void notifyContextCreated(const String& frameId, ScriptState*, SecurityOrigi n*, bool isPageContext);
69 70
70 Page* m_inspectedPage; 71 Page* m_inspectedPage;
71 InspectorPageAgent* m_pageAgent; 72 InspectorPageAgent* m_pageAgent;
73 InspectorAgent* m_inspectorAgent;
72 InspectorFrontend::Runtime* m_frontend; 74 InspectorFrontend::Runtime* m_frontend;
73 }; 75 };
74 76
75 } // namespace WebCore 77 } // namespace WebCore
76 78
77 #endif // ENABLE(INSPECTOR) 79 #endif // ENABLE(INSPECTOR)
78 80
79 #endif // !defined(InspectorPagerAgent_h) 81 #endif // !defined(InspectorPagerAgent_h)
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/InspectorController.cpp ('k') | Source/WebCore/inspector/PageRuntimeAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698