| 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 3540de2c00431707d7ab913f88d974a7bca488b8..aead12f75a92aa0b15e83ed261329d7fcd6947b0 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp
|
| @@ -50,6 +50,7 @@
|
| #include "core/inspector/ConsoleMessageStorage.h"
|
| #include "core/inspector/IdentifiersFactory.h"
|
| #include "core/inspector/InspectedFrames.h"
|
| +#include "core/inspector/InspectorInstrumentation.h"
|
| #include "core/inspector/InstrumentingAgents.h"
|
| #include "core/inspector/NetworkResourcesData.h"
|
| #include "core/loader/DocumentLoader.h"
|
| @@ -100,9 +101,6 @@ static size_t maximumResourceBufferSize = 10 * 1000 * 1000;
|
|
|
| namespace {
|
|
|
| -// Keep in sync with kDevToolsRequestInitiator defined in devtools_network_controller.cc
|
| -const char kDevToolsEmulateNetworkConditionsClientId[] = "X-DevTools-Emulate-Network-Conditions-Client-Id";
|
| -
|
| // Pattern may contain stars ('*') which match to any (possibly empty) string.
|
| // Stars implicitly assumed at the begin/end of pattern.
|
| bool matches(const String& url, const String& pattern)
|
| @@ -536,7 +534,7 @@ void InspectorResourceAgent::willSendRequest(LocalFrame* frame, unsigned long id
|
| willSendRequestInternal(frame, identifier, loader, request, redirectResponse, initiatorInfo);
|
|
|
| if (!m_hostId.isEmpty())
|
| - request.addHTTPHeaderField(kDevToolsEmulateNetworkConditionsClientId, AtomicString(m_hostId));
|
| + request.addHTTPHeaderField(InspectorInstrumentation::kInspectorEmulateNetworkConditionsClientId, AtomicString(m_hostId));
|
| }
|
|
|
| void InspectorResourceAgent::markResourceAsCached(unsigned long identifier)
|
|
|