OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |