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

Side by Side Diff: third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp

Issue 1853743005: Oilpan: Remove WillBe types (part 13) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013, Intel Corporation 3 * Copyright (C) 2013, Intel Corporation
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 if (resource()->loader()) { 852 if (resource()->loader()) {
853 unsigned long identifier = resource()->identifier(); 853 unsigned long identifier = resource()->identifier();
854 InspectorInstrumentation::documentThreadableLoaderStartedLoadingForC lient(m_document, identifier, m_client); 854 InspectorInstrumentation::documentThreadableLoaderStartedLoadingForC lient(m_document, identifier, m_client);
855 } 855 }
856 return; 856 return;
857 } 857 }
858 858
859 FetchRequest fetchRequest(request, m_options.initiator, resourceLoaderOption s); 859 FetchRequest fetchRequest(request, m_options.initiator, resourceLoaderOption s);
860 if (m_options.crossOriginRequestPolicy == AllowCrossOriginRequests) 860 if (m_options.crossOriginRequestPolicy == AllowCrossOriginRequests)
861 fetchRequest.setOriginRestriction(FetchRequest::NoOriginRestriction); 861 fetchRequest.setOriginRestriction(FetchRequest::NoOriginRestriction);
862 RefPtrWillBeRawPtr<Resource> resource = RawResource::fetchSynchronously(fetc hRequest, document().fetcher()); 862 RawPtr<Resource> resource = RawResource::fetchSynchronously(fetchRequest, do cument().fetcher());
863 ResourceResponse response = resource ? resource->response() : ResourceRespon se(); 863 ResourceResponse response = resource ? resource->response() : ResourceRespon se();
864 unsigned long identifier = resource ? resource->identifier() : std::numeric_ limits<unsigned long>::max(); 864 unsigned long identifier = resource ? resource->identifier() : std::numeric_ limits<unsigned long>::max();
865 ResourceError error = resource ? resource->resourceError() : ResourceError() ; 865 ResourceError error = resource ? resource->resourceError() : ResourceError() ;
866 866
867 InspectorInstrumentation::documentThreadableLoaderStartedLoadingForClient(m_ document, identifier, m_client); 867 InspectorInstrumentation::documentThreadableLoaderStartedLoadingForClient(m_ document, identifier, m_client);
868 868
869 if (!resource) { 869 if (!resource) {
870 m_client->didFail(error); 870 m_client->didFail(error);
871 return; 871 return;
872 } 872 }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 return m_securityOrigin ? m_securityOrigin.get() : document().getSecurityOri gin(); 936 return m_securityOrigin ? m_securityOrigin.get() : document().getSecurityOri gin();
937 } 937 }
938 938
939 Document& DocumentThreadableLoader::document() const 939 Document& DocumentThreadableLoader::document() const
940 { 940 {
941 ASSERT(m_document); 941 ASSERT(m_document);
942 return *m_document; 942 return *m_document;
943 } 943 }
944 944
945 } // namespace blink 945 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698