| Index: third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp
|
| index 8e8380cf863e19fe450bee658f546673c3d6b06e..9de10f468e5805a883dbb9ba06c5e1aa8be9a88c 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp
|
| @@ -85,6 +85,7 @@ namespace ResourceAgentState {
|
| static const char resourceAgentEnabled[] = "resourceAgentEnabled";
|
| static const char extraRequestHeaders[] = "extraRequestHeaders";
|
| static const char cacheDisabled[] = "cacheDisabled";
|
| +static const char bypassServiceWorker[] = "bypassServiceWorker";
|
| static const char userAgentOverride[] = "userAgentOverride";
|
| static const char monitoringXHR[] = "monitoringXHR";
|
| static const char blockedURLs[] = "blockedURLs";
|
| @@ -524,6 +525,8 @@ void InspectorResourceAgent::willSendRequest(LocalFrame* frame, unsigned long id
|
| request.setCachePolicy(WebCachePolicy::BypassingCache);
|
| request.setShouldResetAppCache(true);
|
| }
|
| + if (m_state->booleanProperty(ResourceAgentState::bypassServiceWorker, false))
|
| + request.setSkipServiceWorker(true);
|
|
|
| willSendRequestInternal(frame, identifier, loader, request, redirectResponse, initiatorInfo);
|
|
|
| @@ -1057,6 +1060,11 @@ void InspectorResourceAgent::setCacheDisabled(ErrorString*, bool cacheDisabled)
|
| memoryCache()->evictResources();
|
| }
|
|
|
| +void InspectorResourceAgent::setBypassServiceWorker(ErrorString*, bool bypass)
|
| +{
|
| + m_state->setBoolean(ResourceAgentState::bypassServiceWorker, bypass);
|
| +}
|
| +
|
| void InspectorResourceAgent::emulateNetworkConditions(ErrorString*, bool, double, double, double)
|
| {
|
| }
|
|
|