| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 void canClearBrowserCache(ErrorString*, bool*) override; | 144 void canClearBrowserCache(ErrorString*, bool*) override; |
| 145 void canClearBrowserCookies(ErrorString*, bool*) override; | 145 void canClearBrowserCookies(ErrorString*, bool*) override; |
| 146 void emulateNetworkConditions(ErrorString*, bool, double, double, double) ov
erride; | 146 void emulateNetworkConditions(ErrorString*, bool, double, double, double) ov
erride; |
| 147 void setCacheDisabled(ErrorString*, bool cacheDisabled) override; | 147 void setCacheDisabled(ErrorString*, bool cacheDisabled) override; |
| 148 | 148 |
| 149 void setDataSizeLimitsForTest(ErrorString*, int maxTotal, int maxResource) o
verride; | 149 void setDataSizeLimitsForTest(ErrorString*, int maxTotal, int maxResource) o
verride; |
| 150 | 150 |
| 151 // Called from other agents. | 151 // Called from other agents. |
| 152 void setHostId(const String&); | 152 void setHostId(const String&); |
| 153 bool fetchResourceContent(Document*, const KURL&, String* content, bool* bas
e64Encoded); | 153 bool fetchResourceContent(Document*, const KURL&, String* content, bool* bas
e64Encoded); |
| 154 bool shouldBlockRequest(const ResourceRequest&); | 154 bool shouldBlockRequest(LocalFrame*, const ResourceRequest&, DocumentLoader*
, const FetchInitiatorInfo&); |
| 155 | 155 |
| 156 private: | 156 private: |
| 157 explicit InspectorResourceAgent(InspectorPageAgent*); | 157 explicit InspectorResourceAgent(InspectorPageAgent*); |
| 158 | 158 |
| 159 void enable(); | 159 void enable(); |
| 160 void willSendRequestInternal(LocalFrame*, unsigned long identifier, Document
Loader*, const ResourceRequest&, const ResourceResponse& redirectResponse, const
FetchInitiatorInfo&); |
| 160 void delayedRemoveReplayXHR(XMLHttpRequest*); | 161 void delayedRemoveReplayXHR(XMLHttpRequest*); |
| 161 void removeFinishedReplayXHRFired(Timer<InspectorResourceAgent>*); | 162 void removeFinishedReplayXHRFired(Timer<InspectorResourceAgent>*); |
| 162 void didFinishXHRInternal(ExecutionContext*, XMLHttpRequest*, ThreadableLoad
erClient*, const AtomicString&, const String&, bool); | 163 void didFinishXHRInternal(ExecutionContext*, XMLHttpRequest*, ThreadableLoad
erClient*, const AtomicString&, const String&, bool); |
| 163 | 164 |
| 164 bool getResponseBodyBlob(const String& requestId, PassRefPtrWillBeRawPtr<Get
ResponseBodyCallback>); | 165 bool getResponseBodyBlob(const String& requestId, PassRefPtrWillBeRawPtr<Get
ResponseBodyCallback>); |
| 165 | 166 |
| 166 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 167 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 167 String m_userAgentOverride; | 168 String m_userAgentOverride; |
| 168 String m_hostId; | 169 String m_hostId; |
| 169 OwnPtr<NetworkResourcesData> m_resourcesData; | 170 OwnPtr<NetworkResourcesData> m_resourcesData; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 188 | 189 |
| 189 PersistentHeapHashSetWillBeHeapHashSet<Member<XMLHttpRequest>> m_replayXHRs; | 190 PersistentHeapHashSetWillBeHeapHashSet<Member<XMLHttpRequest>> m_replayXHRs; |
| 190 PersistentHeapHashSetWillBeHeapHashSet<Member<XMLHttpRequest>> m_replayXHRsT
oBeDeleted; | 191 PersistentHeapHashSetWillBeHeapHashSet<Member<XMLHttpRequest>> m_replayXHRsT
oBeDeleted; |
| 191 Timer<InspectorResourceAgent> m_removeFinishedReplayXHRTimer; | 192 Timer<InspectorResourceAgent> m_removeFinishedReplayXHRTimer; |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 } // namespace blink | 195 } // namespace blink |
| 195 | 196 |
| 196 | 197 |
| 197 #endif // !defined(InspectorResourceAgent_h) | 198 #endif // !defined(InspectorResourceAgent_h) |
| OLD | NEW |