OLD | NEW |
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 25 matching lines...) Expand all Loading... |
36 #include "wtf/PassOwnPtr.h" | 36 #include "wtf/PassOwnPtr.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace WebCore { |
39 | 39 |
40 class InspectorPageAgent; | 40 class InspectorPageAgent; |
41 class Page; | 41 class Page; |
42 class SecurityOrigin; | 42 class SecurityOrigin; |
43 | 43 |
44 class PageRuntimeAgent FINAL : public InspectorRuntimeAgent { | 44 class PageRuntimeAgent FINAL : public InspectorRuntimeAgent { |
45 public: | 45 public: |
46 static PassOwnPtr<PageRuntimeAgent> create(InjectedScriptManager* injectedSc
riptManager, ScriptDebugServer* scriptDebugServer, Page* page, InspectorPageAgen
t* pageAgent) | 46 static PassOwnPtr<PageRuntimeAgent> create(InjectedScriptManager* injectedSc
riptManager, ScriptDebugServerBase* scriptDebugServer, Page* page, InspectorPage
Agent* pageAgent) |
47 { | 47 { |
48 return adoptPtr(new PageRuntimeAgent(injectedScriptManager, scriptDebugS
erver, page, pageAgent)); | 48 return adoptPtr(new PageRuntimeAgent(injectedScriptManager, scriptDebugS
erver, page, pageAgent)); |
49 } | 49 } |
50 virtual ~PageRuntimeAgent(); | 50 virtual ~PageRuntimeAgent(); |
51 virtual void init() OVERRIDE; | 51 virtual void init() OVERRIDE; |
52 virtual void enable(ErrorString*) OVERRIDE; | 52 virtual void enable(ErrorString*) OVERRIDE; |
53 | 53 |
54 void didClearDocumentOfWindowObject(LocalFrame*); | 54 void didClearDocumentOfWindowObject(LocalFrame*); |
55 void didCreateIsolatedContext(LocalFrame*, ScriptState*, SecurityOrigin*); | 55 void didCreateIsolatedContext(LocalFrame*, ScriptState*, SecurityOrigin*); |
56 void frameWindowDiscarded(DOMWindow*); | 56 void frameWindowDiscarded(DOMWindow*); |
57 | 57 |
58 private: | 58 private: |
59 PageRuntimeAgent(InjectedScriptManager*, ScriptDebugServer*, Page*, Inspecto
rPageAgent*); | 59 PageRuntimeAgent(InjectedScriptManager*, ScriptDebugServerBase*, Page*, Insp
ectorPageAgent*); |
60 | 60 |
61 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) OVERRIDE; | 61 virtual InjectedScript& injectedScriptForEval(ErrorString*, const int* execu
tionContextId) OVERRIDE; |
62 virtual void muteConsole() OVERRIDE; | 62 virtual void muteConsole() OVERRIDE; |
63 virtual void unmuteConsole() OVERRIDE; | 63 virtual void unmuteConsole() OVERRIDE; |
64 void reportExecutionContextCreation(); | 64 void reportExecutionContextCreation(); |
65 void notifyContextCreated(const String& frameId, ScriptState*, SecurityOrigi
n*, bool isPageContext); | 65 void notifyContextCreated(const String& frameId, ScriptState*, SecurityOrigi
n*, bool isPageContext); |
66 void notifyDartContextCreated(const String& frameId, V8ScriptState* v8Script
State); | 66 void notifyDartContextCreated(const String& frameId, V8ScriptState*); |
67 | 67 |
68 Page* m_inspectedPage; | 68 Page* m_inspectedPage; |
69 InspectorPageAgent* m_pageAgent; | 69 InspectorPageAgent* m_pageAgent; |
70 bool m_mainWorldContextCreated; | 70 bool m_mainWorldContextCreated; |
71 }; | 71 }; |
72 | 72 |
73 } // namespace WebCore | 73 } // namespace WebCore |
74 | 74 |
75 | 75 |
76 #endif // !defined(InspectorPagerAgent_h) | 76 #endif // !defined(InspectorPagerAgent_h) |
OLD | NEW |