Chromium Code Reviews| Index: Source/core/inspector/InspectorInspectorAgent.h |
| diff --git a/Source/core/inspector/InspectorInspectorAgent.h b/Source/core/inspector/InspectorInspectorAgent.h |
| index adfff181ded3046b0120568b55cdc57ab782804c..d92122ebcad95fc90129dda16017f56180133394 100644 |
| --- a/Source/core/inspector/InspectorInspectorAgent.h |
| +++ b/Source/core/inspector/InspectorInspectorAgent.h |
| @@ -51,12 +51,13 @@ typedef String ErrorString; |
| class InspectorInspectorAgent FINAL : public InspectorBaseAgent<InspectorInspectorAgent>, public InspectorBackendDispatcher::InspectorCommandHandler { |
| WTF_MAKE_NONCOPYABLE(InspectorInspectorAgent); |
| public: |
| - static PassOwnPtr<InspectorInspectorAgent> create(Page* page, InjectedScriptManager* injectedScriptManager) |
| + static PassOwnPtrWillBeRawPtr<InspectorInspectorAgent> create(Page* page, InjectedScriptManager* injectedScriptManager) |
| { |
| - return adoptPtr(new InspectorInspectorAgent(page, injectedScriptManager)); |
| + return adoptPtrWillBeNoop(new InspectorInspectorAgent(page, injectedScriptManager)); |
| } |
| virtual ~InspectorInspectorAgent(); |
| + virtual void trace(Visitor*) OVERRIDE; |
| // Inspector front-end API. |
| virtual void enable(ErrorString*) OVERRIDE; |
| @@ -83,7 +84,7 @@ public: |
| private: |
| InspectorInspectorAgent(Page*, InjectedScriptManager*); |
| - Page* m_inspectedPage; |
| + RawPtrWillBeMember<Page> m_inspectedPage; |
| InspectorFrontend* m_frontend; |
|
keishi
2014/06/11 14:10:54
SAFE: InspectorFrontend is owned by InspectorCont
|
| InjectedScriptManager* m_injectedScriptManager; |
|
keishi
2014/06/11 14:10:55
SAFE: InjectedScriptManager is owned by Inspector
|