OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2016 Google Inc. All rights reserved. | 2 * Copyright (C) 2016 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 case WebURLRequest::RequestContextServiceWorker: | 73 case WebURLRequest::RequestContextServiceWorker: |
74 case WebURLRequest::RequestContextSharedWorker: | 74 case WebURLRequest::RequestContextSharedWorker: |
75 case WebURLRequest::RequestContextStyle: | 75 case WebURLRequest::RequestContextStyle: |
76 case WebURLRequest::RequestContextSubresource: | 76 case WebURLRequest::RequestContextSubresource: |
77 case WebURLRequest::RequestContextTrack: | 77 case WebURLRequest::RequestContextTrack: |
78 case WebURLRequest::RequestContextWorker: | 78 case WebURLRequest::RequestContextWorker: |
79 case WebURLRequest::RequestContextXMLHttpRequest: | 79 case WebURLRequest::RequestContextXMLHttpRequest: |
80 case WebURLRequest::RequestContextXSLT: | 80 case WebURLRequest::RequestContextXSLT: |
81 return ContextType::Blockable; | 81 return ContextType::Blockable; |
82 | 82 |
83 // FIXME: Contexts that we should block, but don't currently. https://crbug.
com/388650 | 83 // FIXME: Contexts that we should block, but don't currently. |
| 84 // https://crbug.com/388650 |
84 case WebURLRequest::RequestContextDownload: | 85 case WebURLRequest::RequestContextDownload: |
85 case WebURLRequest::RequestContextPrefetch: | 86 case WebURLRequest::RequestContextPrefetch: |
86 return ContextType::ShouldBeBlockable; | 87 return ContextType::ShouldBeBlockable; |
87 | 88 |
88 case WebURLRequest::RequestContextUnspecified: | 89 case WebURLRequest::RequestContextUnspecified: |
89 NOTREACHED(); | 90 NOTREACHED(); |
90 } | 91 } |
91 NOTREACHED(); | 92 NOTREACHED(); |
92 return ContextType::Blockable; | 93 return ContextType::Blockable; |
93 } | 94 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 case WebURLRequest::RequestContextXMLHttpRequest: | 164 case WebURLRequest::RequestContextXMLHttpRequest: |
164 return "XMLHttpRequest endpoint"; | 165 return "XMLHttpRequest endpoint"; |
165 case WebURLRequest::RequestContextXSLT: | 166 case WebURLRequest::RequestContextXSLT: |
166 return "XSLT"; | 167 return "XSLT"; |
167 } | 168 } |
168 NOTREACHED(); | 169 NOTREACHED(); |
169 return "resource"; | 170 return "resource"; |
170 } | 171 } |
171 | 172 |
172 } // namespace blink | 173 } // namespace blink |
OLD | NEW |