| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 const char* payload, | 185 const char* payload, |
| 186 size_t payloadLength); | 186 size_t payloadLength); |
| 187 void didSendWebSocketFrame(unsigned long identifier, | 187 void didSendWebSocketFrame(unsigned long identifier, |
| 188 int opCode, | 188 int opCode, |
| 189 bool masked, | 189 bool masked, |
| 190 const char* payload, | 190 const char* payload, |
| 191 size_t payloadLength); | 191 size_t payloadLength); |
| 192 void didReceiveWebSocketFrameError(unsigned long identifier, const String&); | 192 void didReceiveWebSocketFrameError(unsigned long identifier, const String&); |
| 193 | 193 |
| 194 // Called from frontend | 194 // Called from frontend |
| 195 void enable(ErrorString*, | 195 Response enable(Maybe<int> totalBufferSize, |
| 196 const Maybe<int>& totalBufferSize, | 196 Maybe<int> resourceBufferSize) override; |
| 197 const Maybe<int>& resourceBufferSize) override; | 197 Response disable() override; |
| 198 void disable(ErrorString*) override; | 198 Response setUserAgentOverride(const String&) override; |
| 199 void setUserAgentOverride(ErrorString*, const String& userAgent) override; | 199 Response setExtraHTTPHeaders( |
| 200 void setExtraHTTPHeaders( | |
| 201 ErrorString*, | |
| 202 std::unique_ptr<protocol::Network::Headers>) override; | 200 std::unique_ptr<protocol::Network::Headers>) override; |
| 203 void getResponseBody(const String& requestId, | 201 void getResponseBody(const String& requestId, |
| 204 std::unique_ptr<GetResponseBodyCallback>) override; | 202 std::unique_ptr<GetResponseBodyCallback>) override; |
| 205 void addBlockedURL(ErrorString*, const String& url) override; | 203 Response addBlockedURL(const String& url) override; |
| 206 void removeBlockedURL(ErrorString*, const String& url) override; | 204 Response removeBlockedURL(const String& url) override; |
| 207 void replayXHR(ErrorString*, const String& requestId) override; | 205 Response replayXHR(const String& requestId) override; |
| 208 void setMonitoringXHREnabled(ErrorString*, bool enabled) override; | 206 Response setMonitoringXHREnabled(bool) override; |
| 209 void canClearBrowserCache(ErrorString*, bool* result) override; | 207 Response canClearBrowserCache(bool* result) override; |
| 210 void canClearBrowserCookies(ErrorString*, bool* result) override; | 208 Response canClearBrowserCookies(bool* result) override; |
| 211 void emulateNetworkConditions(ErrorString*, | 209 Response emulateNetworkConditions(bool offline, |
| 212 bool offline, | 210 double latency, |
| 213 double latency, | 211 double downloadThroughput, |
| 214 double downloadThroughput, | 212 double uploadThroughput, |
| 215 double uploadThroughput, | 213 Maybe<String> connectionType) override; |
| 216 const Maybe<String>& connectionType) override; | 214 Response setCacheDisabled(bool) override; |
| 217 void setCacheDisabled(ErrorString*, bool cacheDisabled) override; | 215 Response setBypassServiceWorker(bool) override; |
| 218 void setBypassServiceWorker(ErrorString*, bool bypass) override; | 216 Response setDataSizeLimitsForTest(int maxTotalSize, |
| 219 void setDataSizeLimitsForTest(ErrorString*, | 217 int maxResourceSize) override; |
| 220 int maxTotalSize, | 218 Response getCertificate( |
| 221 int maxResourceSize) override; | |
| 222 void getCertificate( | |
| 223 ErrorString*, | |
| 224 const String& origin, | 219 const String& origin, |
| 225 std::unique_ptr<protocol::Array<String>>* certificate) override; | 220 std::unique_ptr<protocol::Array<String>>* certificate) override; |
| 226 | 221 |
| 227 // Called from other agents. | 222 // Called from other agents. |
| 228 void setHostId(const String&); | 223 void setHostId(const String&); |
| 229 bool fetchResourceContent(Document*, | 224 bool fetchResourceContent(Document*, |
| 230 const KURL&, | 225 const KURL&, |
| 231 String* content, | 226 String* content, |
| 232 bool* base64Encoded); | 227 bool* base64Encoded); |
| 233 | 228 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 bool m_isRecalculatingStyle; | 276 bool m_isRecalculatingStyle; |
| 282 | 277 |
| 283 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRs; | 278 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRs; |
| 284 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRsToBeDeleted; | 279 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRsToBeDeleted; |
| 285 Timer<InspectorNetworkAgent> m_removeFinishedReplayXHRTimer; | 280 Timer<InspectorNetworkAgent> m_removeFinishedReplayXHRTimer; |
| 286 }; | 281 }; |
| 287 | 282 |
| 288 } // namespace blink | 283 } // namespace blink |
| 289 | 284 |
| 290 #endif // !defined(InspectorNetworkAgent_h) | 285 #endif // !defined(InspectorNetworkAgent_h) |
| OLD | NEW |