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

Side by Side Diff: third_party/WebKit/Source/core/workers/WorkerScriptLoader.h

Issue 1749153002: CORS-RFC1918: Teach ResourceRequest about "external" requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Jochen's feedback. Created 4 years, 9 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 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved.
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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void didFailRedirectCheck() override; 89 void didFailRedirectCheck() override;
90 90
91 void setRequestContext(WebURLRequest::RequestContext requestContext) { m_req uestContext = requestContext; } 91 void setRequestContext(WebURLRequest::RequestContext requestContext) { m_req uestContext = requestContext; }
92 92
93 private: 93 private:
94 friend class WTF::RefCounted<WorkerScriptLoader>; 94 friend class WTF::RefCounted<WorkerScriptLoader>;
95 95
96 WorkerScriptLoader(); 96 WorkerScriptLoader();
97 ~WorkerScriptLoader() override; 97 ~WorkerScriptLoader() override;
98 98
99 ResourceRequest createResourceRequest(); 99 ResourceRequest createResourceRequest(ExecutionContext&);
100 void notifyError(); 100 void notifyError();
101 void notifyFinished(); 101 void notifyFinished();
102 102
103 void processContentSecurityPolicy(const ResourceResponse&); 103 void processContentSecurityPolicy(const ResourceResponse&);
104 104
105 // Callbacks for loadAsynchronously(). 105 // Callbacks for loadAsynchronously().
106 OwnPtr<Closure> m_responseCallback; 106 OwnPtr<Closure> m_responseCallback;
107 OwnPtr<Closure> m_finishedCallback; 107 OwnPtr<Closure> m_finishedCallback;
108 108
109 RefPtr<ThreadableLoader> m_threadableLoader; 109 RefPtr<ThreadableLoader> m_threadableLoader;
110 String m_responseEncoding; 110 String m_responseEncoding;
111 OwnPtr<TextResourceDecoder> m_decoder; 111 OwnPtr<TextResourceDecoder> m_decoder;
112 StringBuilder m_script; 112 StringBuilder m_script;
113 KURL m_url; 113 KURL m_url;
114 KURL m_responseURL; 114 KURL m_responseURL;
115 bool m_failed; 115 bool m_failed;
116 bool m_needToCancel; 116 bool m_needToCancel;
117 unsigned long m_identifier; 117 unsigned long m_identifier;
118 long long m_appCacheID; 118 long long m_appCacheID;
119 OwnPtr<Vector<char>> m_cachedMetadata; 119 OwnPtr<Vector<char>> m_cachedMetadata;
120 WebURLRequest::RequestContext m_requestContext; 120 WebURLRequest::RequestContext m_requestContext;
121 RefPtrWillBePersistent<ContentSecurityPolicy> m_contentSecurityPolicy; 121 RefPtrWillBePersistent<ContentSecurityPolicy> m_contentSecurityPolicy;
122 }; 122 };
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // WorkerScriptLoader_h 126 #endif // WorkerScriptLoader_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/EventSource.cpp ('k') | third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698