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

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

Issue 2290193003: Include the Origin header for XHR and Fetch API even if the request is same-origin
Patch Set: a Created 4 years, 3 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) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void handleReceivedData(const char* data, size_t dataLength); 115 void handleReceivedData(const char* data, size_t dataLength);
116 void handleSuccessfulFinish(unsigned long identifier, double finishTime) ; 116 void handleSuccessfulFinish(unsigned long identifier, double finishTime) ;
117 117
118 // |this| may be dead after calling this method. 118 // |this| may be dead after calling this method.
119 void didTimeout(TimerBase*); 119 void didTimeout(TimerBase*);
120 // Calls the appropriate loading method according to policy and data 120 // Calls the appropriate loading method according to policy and data
121 // about origin. Only for handling the initial load (including fallback 121 // about origin. Only for handling the initial load (including fallback
122 // after consulting ServiceWorker). 122 // after consulting ServiceWorker).
123 // 123 //
124 // |this| may be dead after calling this method in async mode. 124 // |this| may be dead after calling this method in async mode.
125 void dispatchInitialRequest(const ResourceRequest&); 125 void dispatchInitialRequest(ResourceRequest&);
126 // |this| may be dead after calling this method in async mode. 126 // |this| may be dead after calling this method in async mode.
127 void makeCrossOriginAccessRequest(const ResourceRequest&); 127 void makeCrossOriginAccessRequest(const ResourceRequest&);
128 // Loads m_fallbackRequestForServiceWorker. 128 // Loads m_fallbackRequestForServiceWorker.
129 // 129 //
130 // |this| may be dead after calling this method in async mode. 130 // |this| may be dead after calling this method in async mode.
131 void loadFallbackRequestForServiceWorker(); 131 void loadFallbackRequestForServiceWorker();
132 // Loads m_actualRequest. 132 // Loads m_actualRequest.
133 void loadActualRequest(); 133 void loadActualRequest();
134 // Clears m_actualRequest and reports access control check failure to 134 // Clears m_actualRequest and reports access control check failure to
135 // m_client. 135 // m_client.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 bool m_didRedirect; 237 bool m_didRedirect;
238 Referrer m_referrerAfterRedirect; 238 Referrer m_referrerAfterRedirect;
239 239
240 RawResourceClientStateChecker m_checker; 240 RawResourceClientStateChecker m_checker;
241 WeakPtrFactory<DocumentThreadableLoader> m_weakFactory; 241 WeakPtrFactory<DocumentThreadableLoader> m_weakFactory;
242 }; 242 };
243 243
244 } // namespace blink 244 } // namespace blink
245 245
246 #endif // DocumentThreadableLoader_h 246 #endif // DocumentThreadableLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698