Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp

Issue 2611183007: PlzNavigate: Fix for the http/tests/inspector/resource-har-conversion.html layout test failure. (Closed)
Patch Set: Rebaseline enable-browser-side-navigation Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1505 for (auto& resource : m_resourcesData->resources()) { 1505 for (auto& resource : m_resourcesData->resources()) {
1506 if (resource->requestedURL() == url) { 1506 if (resource->requestedURL() == url) {
1507 *content = resource->content(); 1507 *content = resource->content();
1508 *base64Encoded = resource->base64Encoded(); 1508 *base64Encoded = resource->base64Encoded();
1509 return true; 1509 return true;
1510 } 1510 }
1511 } 1511 }
1512 return false; 1512 return false;
1513 } 1513 }
1514 1514
1515 bool InspectorNetworkAgent::cacheDisabled() {
1516 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false);
pfeldman 2017/01/11 00:21:52 m_state->booleanProperty(NetworkAgentState::networ
ananta 2017/01/11 00:47:29 Done.
1517 }
1518
1515 void InspectorNetworkAgent::removeFinishedReplayXHRFired(TimerBase*) { 1519 void InspectorNetworkAgent::removeFinishedReplayXHRFired(TimerBase*) {
1516 m_replayXHRsToBeDeleted.clear(); 1520 m_replayXHRsToBeDeleted.clear();
1517 } 1521 }
1518 1522
1519 InspectorNetworkAgent::InspectorNetworkAgent(InspectedFrames* inspectedFrames) 1523 InspectorNetworkAgent::InspectorNetworkAgent(InspectedFrames* inspectedFrames)
1520 : m_inspectedFrames(inspectedFrames), 1524 : m_inspectedFrames(inspectedFrames),
1521 m_resourcesData(NetworkResourcesData::create(maximumTotalBufferSize, 1525 m_resourcesData(NetworkResourcesData::create(maximumTotalBufferSize,
1522 maximumResourceBufferSize)), 1526 maximumResourceBufferSize)),
1523 m_pendingRequest(nullptr), 1527 m_pendingRequest(nullptr),
1524 m_isRecalculatingStyle(false), 1528 m_isRecalculatingStyle(false),
1525 m_removeFinishedReplayXHRTimer( 1529 m_removeFinishedReplayXHRTimer(
1526 this, 1530 this,
1527 &InspectorNetworkAgent::removeFinishedReplayXHRFired) {} 1531 &InspectorNetworkAgent::removeFinishedReplayXHRFired) {}
1528 1532
1529 bool InspectorNetworkAgent::shouldForceCORSPreflight() { 1533 bool InspectorNetworkAgent::shouldForceCORSPreflight() {
1530 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false); 1534 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false);
1531 } 1535 }
1532 1536
1533 } // namespace blink 1537 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698