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

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

Issue 204983007: Make ThreadableLoader class to use references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments Created 6 years, 8 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 | « Source/core/fileapi/FileReaderLoader.cpp ('k') | Source/core/loader/DocumentThreadableLoader.h » ('j') | 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 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 } 745 }
746 request.addHTTPHeaderField(AtomicString(it->key), AtomicString(value )); 746 request.addHTTPHeaderField(AtomicString(it->key), AtomicString(value ));
747 } 747 }
748 } 748 }
749 749
750 ThreadableLoaderOptions options; 750 ThreadableLoaderOptions options;
751 options.allowCredentials = AllowStoredCredentials; 751 options.allowCredentials = AllowStoredCredentials;
752 options.crossOriginRequestPolicy = AllowCrossOriginRequests; 752 options.crossOriginRequestPolicy = AllowCrossOriginRequests;
753 753
754 InspectorThreadableLoaderClient* inspectorThreadableLoaderClient = new Inspe ctorThreadableLoaderClient(callback); 754 InspectorThreadableLoaderClient* inspectorThreadableLoaderClient = new Inspe ctorThreadableLoaderClient(callback);
755 RefPtr<DocumentThreadableLoader> loader = DocumentThreadableLoader::create(d ocument, inspectorThreadableLoaderClient, request, options); 755 RefPtr<DocumentThreadableLoader> loader = DocumentThreadableLoader::create(* document, inspectorThreadableLoaderClient, request, options);
756 if (!loader) { 756 if (!loader) {
757 inspectorThreadableLoaderClient->didFailLoaderCreation(); 757 inspectorThreadableLoaderClient->didFailLoaderCreation();
758 return; 758 return;
759 } 759 }
760 loader->setDefersLoading(false); 760 loader->setDefersLoading(false);
761 if (!callback->isActive()) 761 if (!callback->isActive())
762 return; 762 return;
763 inspectorThreadableLoaderClient->setLoader(loader.release()); 763 inspectorThreadableLoaderClient->setLoader(loader.release());
764 } 764 }
765 765
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 : InspectorBaseAgent<InspectorResourceAgent>("Network") 810 : InspectorBaseAgent<InspectorResourceAgent>("Network")
811 , m_pageAgent(pageAgent) 811 , m_pageAgent(pageAgent)
812 , m_client(client) 812 , m_client(client)
813 , m_frontend(0) 813 , m_frontend(0)
814 , m_resourcesData(adoptPtr(new NetworkResourcesData())) 814 , m_resourcesData(adoptPtr(new NetworkResourcesData()))
815 , m_isRecalculatingStyle(false) 815 , m_isRecalculatingStyle(false)
816 { 816 {
817 } 817 }
818 818
819 } // namespace WebCore 819 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/fileapi/FileReaderLoader.cpp ('k') | Source/core/loader/DocumentThreadableLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698