Index: Source/core/inspector/InspectorResourceAgent.h |
diff --git a/Source/core/inspector/InspectorResourceAgent.h b/Source/core/inspector/InspectorResourceAgent.h |
index eb3b45dc18098561d51c80417dcfe8a1ab5cf956..c65c452521155ba9c4d2767691b90110d5cd891e 100644 |
--- a/Source/core/inspector/InspectorResourceAgent.h |
+++ b/Source/core/inspector/InspectorResourceAgent.h |
@@ -73,9 +73,9 @@ typedef String ErrorString; |
class InspectorResourceAgent FINAL : public InspectorBaseAgent<InspectorResourceAgent>, public InspectorBackendDispatcher::NetworkCommandHandler { |
public: |
- static PassOwnPtr<InspectorResourceAgent> create(InspectorPageAgent* pageAgent) |
+ static PassOwnPtrWillBeRawPtr<InspectorResourceAgent> create(InspectorPageAgent* pageAgent) |
{ |
- return adoptPtr(new InspectorResourceAgent(pageAgent)); |
+ return adoptPtrWillBeNoop(new InspectorResourceAgent(pageAgent)); |
} |
virtual void setFrontend(InspectorFrontend*) OVERRIDE; |
@@ -83,6 +83,7 @@ public: |
virtual void restore() OVERRIDE; |
virtual ~InspectorResourceAgent(); |
+ virtual void trace(Visitor*) OVERRIDE; |
// Called from instrumentation. |
void willSendRequest(unsigned long identifier, DocumentLoader*, ResourceRequest&, const ResourceResponse& redirectResponse, const FetchInitiatorInfo&); |
@@ -147,11 +148,11 @@ public: |
bool fetchResourceContent(Document*, const KURL&, String* content, bool* base64Encoded); |
private: |
- InspectorResourceAgent(InspectorPageAgent*); |
+ explicit InspectorResourceAgent(InspectorPageAgent*); |
void enable(); |
- InspectorPageAgent* m_pageAgent; |
+ RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
InspectorFrontend::Network* m_frontend; |
String m_userAgentOverride; |
String m_hostId; |