| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 ContentSecurityPolicyEnforcement contentSecurityPolicyEnforcement; | 77 ContentSecurityPolicyEnforcement contentSecurityPolicyEnforcement; |
| 78 unsigned long timeoutMilliseconds; | 78 unsigned long timeoutMilliseconds; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 // Encode AtomicString as String to cross threads. | 81 // Encode AtomicString as String to cross threads. |
| 82 struct CrossThreadThreadableLoaderOptionsData { | 82 struct CrossThreadThreadableLoaderOptionsData { |
| 83 STACK_ALLOCATED(); | 83 STACK_ALLOCATED(); |
| 84 explicit CrossThreadThreadableLoaderOptionsData(const ThreadableLoaderOption
s& options) | 84 explicit CrossThreadThreadableLoaderOptionsData(const ThreadableLoaderOption
s& options) |
| 85 : preflightPolicy(options.preflightPolicy) | 85 : preflightPolicy(options.preflightPolicy) |
| 86 , crossOriginRequestPolicy(options.crossOriginRequestPolicy) | 86 , crossOriginRequestPolicy(options.crossOriginRequestPolicy) |
| 87 , initiator(options.initiator.string().isolatedCopy()) | 87 , initiator(options.initiator.getString().isolatedCopy()) |
| 88 , contentSecurityPolicyEnforcement(options.contentSecurityPolicyEnforcem
ent) | 88 , contentSecurityPolicyEnforcement(options.contentSecurityPolicyEnforcem
ent) |
| 89 , timeoutMilliseconds(options.timeoutMilliseconds) { } | 89 , timeoutMilliseconds(options.timeoutMilliseconds) { } |
| 90 | 90 |
| 91 operator ThreadableLoaderOptions() const | 91 operator ThreadableLoaderOptions() const |
| 92 { | 92 { |
| 93 ThreadableLoaderOptions options; | 93 ThreadableLoaderOptions options; |
| 94 options.preflightPolicy = preflightPolicy; | 94 options.preflightPolicy = preflightPolicy; |
| 95 options.crossOriginRequestPolicy = crossOriginRequestPolicy; | 95 options.crossOriginRequestPolicy = crossOriginRequestPolicy; |
| 96 options.initiator = AtomicString(initiator); | 96 options.initiator = AtomicString(initiator); |
| 97 options.contentSecurityPolicyEnforcement = contentSecurityPolicyEnforcem
ent; | 97 options.contentSecurityPolicyEnforcement = contentSecurityPolicyEnforcem
ent; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 184 |
| 185 virtual ~ThreadableLoader() { } | 185 virtual ~ThreadableLoader() { } |
| 186 | 186 |
| 187 protected: | 187 protected: |
| 188 ThreadableLoader() { } | 188 ThreadableLoader() { } |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace blink | 191 } // namespace blink |
| 192 | 192 |
| 193 #endif // ThreadableLoader_h | 193 #endif // ThreadableLoader_h |
| OLD | NEW |