OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 28 matching lines...) Expand all Loading... |
39 : m_scriptURL(scriptURL.copy()) | 39 : m_scriptURL(scriptURL.copy()) |
40 , m_userAgent(userAgent.isolatedCopy()) | 40 , m_userAgent(userAgent.isolatedCopy()) |
41 , m_sourceCode(sourceCode.isolatedCopy()) | 41 , m_sourceCode(sourceCode.isolatedCopy()) |
42 , m_cachedMetaData(cachedMetaData) | 42 , m_cachedMetaData(cachedMetaData) |
43 , m_startMode(startMode) | 43 , m_startMode(startMode) |
44 , m_starterOrigin(starterOrigin) | 44 , m_starterOrigin(starterOrigin) |
45 , m_workerClients(workerClients) | 45 , m_workerClients(workerClients) |
46 , m_v8CacheOptions(v8CacheOptions) | 46 , m_v8CacheOptions(v8CacheOptions) |
47 { | 47 { |
48 m_contentSecurityPolicyHeaders = adoptPtr(new Vector<CSPHeaderAndType>()); | 48 m_contentSecurityPolicyHeaders = adoptPtr(new Vector<CSPHeaderAndType>()); |
| 49 if (!contentSecurityPolicyHeaders) |
| 50 return; |
| 51 |
49 for (const auto& header : *contentSecurityPolicyHeaders) { | 52 for (const auto& header : *contentSecurityPolicyHeaders) { |
50 CSPHeaderAndType copiedHeader(header.first.isolatedCopy(), header.second
); | 53 CSPHeaderAndType copiedHeader(header.first.isolatedCopy(), header.second
); |
51 m_contentSecurityPolicyHeaders->append(copiedHeader); | 54 m_contentSecurityPolicyHeaders->append(copiedHeader); |
52 } | 55 } |
53 } | 56 } |
54 | 57 |
55 WorkerThreadStartupData::~WorkerThreadStartupData() | 58 WorkerThreadStartupData::~WorkerThreadStartupData() |
56 { | 59 { |
57 } | 60 } |
58 | 61 |
59 } // namespace blink | 62 } // namespace blink |
OLD | NEW |