| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 if (!remoteIPAddress.isEmpty()) { | 280 if (!remoteIPAddress.isEmpty()) { |
| 281 responseObject->setRemoteIPAddress(remoteIPAddress); | 281 responseObject->setRemoteIPAddress(remoteIPAddress); |
| 282 responseObject->setRemotePort(response.remotePort()); | 282 responseObject->setRemotePort(response.remotePort()); |
| 283 } | 283 } |
| 284 | 284 |
| 285 return responseObject; | 285 return responseObject; |
| 286 } | 286 } |
| 287 | 287 |
| 288 InspectorResourceAgent::~InspectorResourceAgent() | 288 InspectorResourceAgent::~InspectorResourceAgent() |
| 289 { | 289 { |
| 290 #if !ENABLE(OILPAN) |
| 290 if (m_state->getBoolean(ResourceAgentState::resourceAgentEnabled)) { | 291 if (m_state->getBoolean(ResourceAgentState::resourceAgentEnabled)) { |
| 291 ErrorString error; | 292 ErrorString error; |
| 292 disable(&error); | 293 disable(&error); |
| 293 } | 294 } |
| 294 ASSERT(!m_instrumentingAgents->inspectorResourceAgent()); | 295 ASSERT(!m_instrumentingAgents->inspectorResourceAgent()); |
| 296 #endif |
| 297 } |
| 298 |
| 299 void InspectorResourceAgent::trace(Visitor* visitor) |
| 300 { |
| 301 visitor->trace(m_pageAgent); |
| 302 InspectorBaseAgent::trace(visitor); |
| 295 } | 303 } |
| 296 | 304 |
| 297 void InspectorResourceAgent::willSendRequest(unsigned long identifier, DocumentL
oader* loader, ResourceRequest& request, const ResourceResponse& redirectRespons
e, const FetchInitiatorInfo& initiatorInfo) | 305 void InspectorResourceAgent::willSendRequest(unsigned long identifier, DocumentL
oader* loader, ResourceRequest& request, const ResourceResponse& redirectRespons
e, const FetchInitiatorInfo& initiatorInfo) |
| 298 { | 306 { |
| 299 // Ignore the request initiated internally. | 307 // Ignore the request initiated internally. |
| 300 if (initiatorInfo.name == FetchInitiatorTypeNames::internal) | 308 if (initiatorInfo.name == FetchInitiatorTypeNames::internal) |
| 301 return; | 309 return; |
| 302 | 310 |
| 303 if (!m_hostId.isEmpty()) | 311 if (!m_hostId.isEmpty()) |
| 304 request.addHTTPHeaderField(kDevToolsEmulateNetworkConditionsClientId, At
omicString(m_hostId)); | 312 request.addHTTPHeaderField(kDevToolsEmulateNetworkConditionsClientId, At
omicString(m_hostId)); |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 InspectorResourceAgent::InspectorResourceAgent(InspectorPageAgent* pageAgent) | 835 InspectorResourceAgent::InspectorResourceAgent(InspectorPageAgent* pageAgent) |
| 828 : InspectorBaseAgent<InspectorResourceAgent>("Network") | 836 : InspectorBaseAgent<InspectorResourceAgent>("Network") |
| 829 , m_pageAgent(pageAgent) | 837 , m_pageAgent(pageAgent) |
| 830 , m_frontend(0) | 838 , m_frontend(0) |
| 831 , m_resourcesData(adoptPtr(new NetworkResourcesData())) | 839 , m_resourcesData(adoptPtr(new NetworkResourcesData())) |
| 832 , m_isRecalculatingStyle(false) | 840 , m_isRecalculatingStyle(false) |
| 833 { | 841 { |
| 834 } | 842 } |
| 835 | 843 |
| 836 } // namespace WebCore | 844 } // namespace WebCore |
| OLD | NEW |