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...) 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 PassOwnPtrWillBeRawPtr<PageRuntimeAgent> create(InjectedScriptManager
* injectedScriptManager, ScriptDebugServer* scriptDebugServer, Page* page, Inspe
ctorPageAgent* pageAgent) |
47 { | 47 { |
48 return adoptPtr(new PageRuntimeAgent(injectedScriptManager, scriptDebugS
erver, page, pageAgent)); | 48 return adoptPtrWillBeNoop(new PageRuntimeAgent(injectedScriptManager, sc
riptDebugServer, page, pageAgent)); |
49 } | 49 } |
50 virtual ~PageRuntimeAgent(); | 50 virtual ~PageRuntimeAgent(); |
| 51 virtual void trace(Visitor*) OVERRIDE; |
51 virtual void init() OVERRIDE; | 52 virtual void init() OVERRIDE; |
52 virtual void enable(ErrorString*) OVERRIDE; | 53 virtual void enable(ErrorString*) OVERRIDE; |
53 | 54 |
54 void didClearDocumentOfWindowObject(LocalFrame*); | 55 void didClearDocumentOfWindowObject(LocalFrame*); |
55 void didCreateIsolatedContext(LocalFrame*, ScriptState*, SecurityOrigin*); | 56 void didCreateIsolatedContext(LocalFrame*, ScriptState*, SecurityOrigin*); |
56 void frameWindowDiscarded(LocalDOMWindow*); | 57 void frameWindowDiscarded(LocalDOMWindow*); |
57 | 58 |
58 private: | 59 private: |
59 PageRuntimeAgent(InjectedScriptManager*, ScriptDebugServer*, Page*, Inspecto
rPageAgent*); | 60 PageRuntimeAgent(InjectedScriptManager*, ScriptDebugServer*, Page*, Inspecto
rPageAgent*); |
60 | 61 |
61 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) OVERRIDE; | 62 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) OVERRIDE; |
62 virtual void muteConsole() OVERRIDE; | 63 virtual void muteConsole() OVERRIDE; |
63 virtual void unmuteConsole() OVERRIDE; | 64 virtual void unmuteConsole() OVERRIDE; |
64 void reportExecutionContextCreation(); | 65 void reportExecutionContextCreation(); |
65 | 66 |
66 Page* m_inspectedPage; | 67 RawPtrWillBeMember<Page> m_inspectedPage; |
67 InspectorPageAgent* m_pageAgent; | 68 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
68 bool m_mainWorldContextCreated; | 69 bool m_mainWorldContextCreated; |
69 }; | 70 }; |
70 | 71 |
71 } // namespace WebCore | 72 } // namespace WebCore |
72 | 73 |
73 | 74 |
74 #endif // !defined(InspectorPagerAgent_h) | 75 #endif // !defined(InspectorPagerAgent_h) |
OLD | NEW |