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

Side by Side Diff: Source/core/fetch/ResourceLoader.h

Issue 137983010: (Re)organize handling of CORS access control during resource loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: HTMLImportLoader no longer needs a ResourceFetcher Created 6 years, 11 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/fetch/ResourceFetcher.cpp ('k') | Source/core/fetch/ResourceLoader.cpp » ('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) 2005, 2006, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const ResourceRequest& request() const { return m_request; } 84 const ResourceRequest& request() const { return m_request; }
85 85
86 private: 86 private:
87 ResourceLoader(ResourceLoaderHost*, Resource*, const ResourceLoaderOptions&) ; 87 ResourceLoader(ResourceLoaderHost*, Resource*, const ResourceLoaderOptions&) ;
88 88
89 void init(const ResourceRequest&); 89 void init(const ResourceRequest&);
90 void requestSynchronously(); 90 void requestSynchronously();
91 91
92 void didFinishLoadingOnePart(double finishTime); 92 void didFinishLoadingOnePart(double finishTime);
93 93
94 bool responseNeedsAccessControlCheck() const;
95
94 OwnPtr<blink::WebURLLoader> m_loader; 96 OwnPtr<blink::WebURLLoader> m_loader;
95 RefPtr<ResourceLoaderHost> m_host; 97 RefPtr<ResourceLoaderHost> m_host;
96 98
97 ResourceRequest m_request; 99 ResourceRequest m_request;
98 ResourceRequest m_originalRequest; // Before redirects. 100 ResourceRequest m_originalRequest; // Before redirects.
99 101
100 bool m_notifiedLoadComplete; 102 bool m_notifiedLoadComplete;
101 103
102 bool m_defersLoading; 104 bool m_defersLoading;
103 ResourceRequest m_deferredRequest; 105 ResourceRequest m_deferredRequest;
(...skipping 30 matching lines...) Expand all
134 // Used for sanity checking to make sure we don't experience illegal state 136 // Used for sanity checking to make sure we don't experience illegal state
135 // transitions. 137 // transitions.
136 ConnectionState m_connectionState; 138 ConnectionState m_connectionState;
137 139
138 OwnPtr<RequestCountTracker> m_requestCountTracker; 140 OwnPtr<RequestCountTracker> m_requestCountTracker;
139 }; 141 };
140 142
141 } 143 }
142 144
143 #endif 145 #endif
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/core/fetch/ResourceLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698