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

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

Issue 2685543002: Support data URLs in worker constructors (Closed)
Patch Set: Implemented Pass 2 code review suggestions. Removed external/wpt/workers/data-url.html from the lis… Created 3 years, 10 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool IsNoCORSAllowedContext( 105 bool IsNoCORSAllowedContext(
106 WebURLRequest::RequestContext context, 106 WebURLRequest::RequestContext context,
107 WebURLRequest::SkipServiceWorker skipServiceWorker) { 107 WebURLRequest::SkipServiceWorker skipServiceWorker) {
108 switch (context) { 108 switch (context) {
109 case WebURLRequest::RequestContextAudio: 109 case WebURLRequest::RequestContextAudio:
110 case WebURLRequest::RequestContextVideo: 110 case WebURLRequest::RequestContextVideo:
111 case WebURLRequest::RequestContextObject: 111 case WebURLRequest::RequestContextObject:
112 case WebURLRequest::RequestContextFavicon: 112 case WebURLRequest::RequestContextFavicon:
113 case WebURLRequest::RequestContextImage: 113 case WebURLRequest::RequestContextImage:
114 case WebURLRequest::RequestContextScript: 114 case WebURLRequest::RequestContextScript:
115 case WebURLRequest::RequestContextWorker:
115 return true; 116 return true;
116 case WebURLRequest::RequestContextPlugin: 117 case WebURLRequest::RequestContextPlugin:
117 return skipServiceWorker == WebURLRequest::SkipServiceWorker::All; 118 return skipServiceWorker == WebURLRequest::SkipServiceWorker::All;
118 default: 119 default:
119 return false; 120 return false;
120 } 121 }
121 } 122 }
122 123
123 } // namespace 124 } // namespace
124 125
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 } 1148 }
1148 1149
1149 DEFINE_TRACE(DocumentThreadableLoader) { 1150 DEFINE_TRACE(DocumentThreadableLoader) {
1150 visitor->trace(m_resource); 1151 visitor->trace(m_resource);
1151 visitor->trace(m_document); 1152 visitor->trace(m_document);
1152 ThreadableLoader::trace(visitor); 1153 ThreadableLoader::trace(visitor);
1153 RawResourceClient::trace(visitor); 1154 RawResourceClient::trace(visitor);
1154 } 1155 }
1155 1156
1156 } // namespace blink 1157 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698