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

Side by Side Diff: Source/core/inspector/InspectorResourceAgent.cpp

Issue 898593002: DevTools: use per-LocalFrame instrumenting agents instead of per-Page ones. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
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 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 } 916 }
917 } 917 }
918 918
919 void InspectorResourceAgent::emulateNetworkConditions(ErrorString*, bool, double , double, double) 919 void InspectorResourceAgent::emulateNetworkConditions(ErrorString*, bool, double , double, double)
920 { 920 {
921 } 921 }
922 922
923 void InspectorResourceAgent::loadResourceForFrontend(ErrorString* errorString, c onst String& url, const RefPtr<JSONObject>* requestHeaders, PassRefPtrWillBeRawP tr<LoadResourceForFrontendCallback> prpCallback) 923 void InspectorResourceAgent::loadResourceForFrontend(ErrorString* errorString, c onst String& url, const RefPtr<JSONObject>* requestHeaders, PassRefPtrWillBeRawP tr<LoadResourceForFrontendCallback> prpCallback)
924 { 924 {
925 RefPtrWillBeRawPtr<LoadResourceForFrontendCallback> callback = prpCallback; 925 RefPtrWillBeRawPtr<LoadResourceForFrontendCallback> callback = prpCallback;
926 Frame* frame = m_pageAgent->page()->mainFrame(); 926 Frame* frame = m_pageAgent->mainFrame();
927 if (!frame || !frame->isLocalFrame()) { 927 if (!frame || !frame->isLocalFrame()) {
928 *errorString = "No frame to use as a loader found"; 928 *errorString = "No frame to use as a loader found";
929 return; 929 return;
930 } 930 }
931 931
932 Document* document = static_cast<LocalFrame*>(frame)->document(); 932 Document* document = static_cast<LocalFrame*>(frame)->document();
933 if (!document) { 933 if (!document) {
934 *errorString = "No Document instance found"; 934 *errorString = "No Document instance found";
935 return; 935 return;
936 } 936 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish edReplayXHRFired) 1032 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish edReplayXHRFired)
1033 { 1033 {
1034 } 1034 }
1035 1035
1036 bool InspectorResourceAgent::shouldForceCORSPreflight() 1036 bool InspectorResourceAgent::shouldForceCORSPreflight()
1037 { 1037 {
1038 return m_state->getBoolean(ResourceAgentState::cacheDisabled); 1038 return m_state->getBoolean(ResourceAgentState::cacheDisabled);
1039 } 1039 }
1040 1040
1041 } // namespace blink 1041 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698