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

Side by Side Diff: Source/core/workers/WorkerThreadStartupData.cpp

Issue 1190133002: Remove WorkerScriptLoaderClient and inheritances (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review #6 and #7 Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerScriptLoaderClient.h ('k') | Source/web/SharedWorkerRepositoryClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698