OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 ForcePreflight, | 57 ForcePreflight, |
58 PreventPreflight | 58 PreventPreflight |
59 }; | 59 }; |
60 | 60 |
61 enum ContentSecurityPolicyEnforcement { | 61 enum ContentSecurityPolicyEnforcement { |
62 EnforceConnectSrcDirective, | 62 EnforceConnectSrcDirective, |
63 DoNotEnforceContentSecurityPolicy, | 63 DoNotEnforceContentSecurityPolicy, |
64 }; | 64 }; |
65 | 65 |
66 struct ThreadableLoaderOptions { | 66 struct ThreadableLoaderOptions { |
67 DISALLOW_ALLOCATION(); | 67 DISALLOW_NEW(); |
68 ThreadableLoaderOptions() | 68 ThreadableLoaderOptions() |
69 : preflightPolicy(ConsiderPreflight) | 69 : preflightPolicy(ConsiderPreflight) |
70 , crossOriginRequestPolicy(DenyCrossOriginRequests) | 70 , crossOriginRequestPolicy(DenyCrossOriginRequests) |
71 , contentSecurityPolicyEnforcement(EnforceConnectSrcDirective) | 71 , contentSecurityPolicyEnforcement(EnforceConnectSrcDirective) |
72 , timeoutMilliseconds(0) { } | 72 , timeoutMilliseconds(0) { } |
73 | 73 |
74 // When adding members, CrossThreadThreadableLoaderOptionsData should | 74 // When adding members, CrossThreadThreadableLoaderOptionsData should |
75 // be updated. | 75 // be updated. |
76 PreflightPolicy preflightPolicy; // If AccessControl is used, how to determi
ne if a preflight is needed. | 76 PreflightPolicy preflightPolicy; // If AccessControl is used, how to determi
ne if a preflight is needed. |
77 CrossOriginRequestPolicy crossOriginRequestPolicy; | 77 CrossOriginRequestPolicy crossOriginRequestPolicy; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 virtual ~ThreadableLoader() { } | 170 virtual ~ThreadableLoader() { } |
171 | 171 |
172 protected: | 172 protected: |
173 ThreadableLoader() { } | 173 ThreadableLoader() { } |
174 }; | 174 }; |
175 | 175 |
176 } // namespace blink | 176 } // namespace blink |
177 | 177 |
178 #endif // ThreadableLoader_h | 178 #endif // ThreadableLoader_h |
OLD | NEW |