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

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

Issue 2648083002: Migrate Timer to TaskRunnerTimer in InspectorNetworkAgent (Closed)
Patch Set: change to UnspecedLoading Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "core/inspector/InspectorNetworkAgent.h" 31 #include "core/inspector/InspectorNetworkAgent.h"
32 32
33 #include "bindings/core/v8/ExceptionState.h" 33 #include "bindings/core/v8/ExceptionState.h"
34 #include "bindings/core/v8/SourceLocation.h" 34 #include "bindings/core/v8/SourceLocation.h"
35 #include "core/dom/Document.h" 35 #include "core/dom/Document.h"
36 #include "core/dom/ScriptableDocumentParser.h" 36 #include "core/dom/ScriptableDocumentParser.h"
37 #include "core/dom/TaskRunnerHelper.h"
37 #include "core/fetch/FetchInitiatorInfo.h" 38 #include "core/fetch/FetchInitiatorInfo.h"
38 #include "core/fetch/FetchInitiatorTypeNames.h" 39 #include "core/fetch/FetchInitiatorTypeNames.h"
39 #include "core/fetch/MemoryCache.h" 40 #include "core/fetch/MemoryCache.h"
40 #include "core/fetch/Resource.h" 41 #include "core/fetch/Resource.h"
41 #include "core/fetch/ResourceFetcher.h" 42 #include "core/fetch/ResourceFetcher.h"
42 #include "core/fetch/UniqueIdentifier.h" 43 #include "core/fetch/UniqueIdentifier.h"
43 #include "core/fileapi/FileReaderLoader.h" 44 #include "core/fileapi/FileReaderLoader.h"
44 #include "core/fileapi/FileReaderLoaderClient.h" 45 #include "core/fileapi/FileReaderLoaderClient.h"
45 #include "core/frame/FrameConsole.h" 46 #include "core/frame/FrameConsole.h"
46 #include "core/frame/FrameHost.h" 47 #include "core/frame/FrameHost.h"
(...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after
1524 m_replayXHRsToBeDeleted.clear(); 1525 m_replayXHRsToBeDeleted.clear();
1525 } 1526 }
1526 1527
1527 InspectorNetworkAgent::InspectorNetworkAgent(InspectedFrames* inspectedFrames) 1528 InspectorNetworkAgent::InspectorNetworkAgent(InspectedFrames* inspectedFrames)
1528 : m_inspectedFrames(inspectedFrames), 1529 : m_inspectedFrames(inspectedFrames),
1529 m_resourcesData(NetworkResourcesData::create(maximumTotalBufferSize, 1530 m_resourcesData(NetworkResourcesData::create(maximumTotalBufferSize,
1530 maximumResourceBufferSize)), 1531 maximumResourceBufferSize)),
1531 m_pendingRequest(nullptr), 1532 m_pendingRequest(nullptr),
1532 m_isRecalculatingStyle(false), 1533 m_isRecalculatingStyle(false),
1533 m_removeFinishedReplayXHRTimer( 1534 m_removeFinishedReplayXHRTimer(
1535 TaskRunnerHelper::get(TaskType::UnspecedLoading,
1536 inspectedFrames->root()),
1534 this, 1537 this,
1535 &InspectorNetworkAgent::removeFinishedReplayXHRFired) {} 1538 &InspectorNetworkAgent::removeFinishedReplayXHRFired) {}
1536 1539
1537 bool InspectorNetworkAgent::shouldForceCORSPreflight() { 1540 bool InspectorNetworkAgent::shouldForceCORSPreflight() {
1538 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false); 1541 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false);
1539 } 1542 }
1540 1543
1541 } // namespace blink 1544 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698