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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 static PassOwnPtr<PageRuntimeAgent> create(InjectedScriptManager* injectedSc
riptManager, ScriptDebugServer* scriptDebugServer, Page* page, InspectorPageAgen
t* pageAgent) | 46 static PassOwnPtr<PageRuntimeAgent> create(InjectedScriptManager* injectedSc
riptManager, ScriptDebugServer* scriptDebugServer, Page* page, InspectorPageAgen
t* 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(LocalDOMWindow*); |
57 | 57 |
58 private: | 58 private: |
59 PageRuntimeAgent(InjectedScriptManager*, ScriptDebugServer*, Page*, Inspecto
rPageAgent*); | 59 PageRuntimeAgent(InjectedScriptManager*, ScriptDebugServer*, Page*, Inspecto
rPageAgent*); |
60 | 60 |
61 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) OVERRIDE; | 61 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) 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 | 65 |
66 Page* m_inspectedPage; | 66 Page* m_inspectedPage; |
67 InspectorPageAgent* m_pageAgent; | 67 InspectorPageAgent* m_pageAgent; |
68 bool m_mainWorldContextCreated; | 68 bool m_mainWorldContextCreated; |
69 }; | 69 }; |
70 | 70 |
71 } // namespace WebCore | 71 } // namespace WebCore |
72 | 72 |
73 | 73 |
74 #endif // !defined(InspectorPagerAgent_h) | 74 #endif // !defined(InspectorPagerAgent_h) |
OLD | NEW |