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

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

Issue 2649923007: Revert of Show service worker navigation preload requests in DevTools Network tab (Closed)
Patch Set: Created 3 years, 10 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const String& sourceCode, 42 const String& sourceCode,
43 std::unique_ptr<Vector<char>> cachedMetaData, 43 std::unique_ptr<Vector<char>> cachedMetaData,
44 WorkerThreadStartMode startMode, 44 WorkerThreadStartMode startMode,
45 const Vector<CSPHeaderAndType>* contentSecurityPolicyHeaders, 45 const Vector<CSPHeaderAndType>* contentSecurityPolicyHeaders,
46 const String& referrerPolicy, 46 const String& referrerPolicy,
47 const SecurityOrigin* starterOrigin, 47 const SecurityOrigin* starterOrigin,
48 WorkerClients* workerClients, 48 WorkerClients* workerClients,
49 WebAddressSpace addressSpace, 49 WebAddressSpace addressSpace,
50 const Vector<String>* originTrialTokens, 50 const Vector<String>* originTrialTokens,
51 std::unique_ptr<WorkerSettings> workerSettings, 51 std::unique_ptr<WorkerSettings> workerSettings,
52 WorkerV8Settings workerV8Settings, 52 WorkerV8Settings workerV8Settings)
53 bool inspectorNetworkCapability)
54 : m_scriptURL(scriptURL.copy()), 53 : m_scriptURL(scriptURL.copy()),
55 m_userAgent(userAgent.isolatedCopy()), 54 m_userAgent(userAgent.isolatedCopy()),
56 m_sourceCode(sourceCode.isolatedCopy()), 55 m_sourceCode(sourceCode.isolatedCopy()),
57 m_cachedMetaData(std::move(cachedMetaData)), 56 m_cachedMetaData(std::move(cachedMetaData)),
58 m_startMode(startMode), 57 m_startMode(startMode),
59 m_referrerPolicy(referrerPolicy.isolatedCopy()), 58 m_referrerPolicy(referrerPolicy.isolatedCopy()),
60 m_starterOriginPrivilegeData( 59 m_starterOriginPrivilegeData(
61 starterOrigin ? starterOrigin->createPrivilegeData() : nullptr), 60 starterOrigin ? starterOrigin->createPrivilegeData() : nullptr),
62 m_workerClients(workerClients), 61 m_workerClients(workerClients),
63 m_addressSpace(addressSpace), 62 m_addressSpace(addressSpace),
64 m_workerSettings(std::move(workerSettings)), 63 m_workerSettings(std::move(workerSettings)),
65 m_workerV8Settings(workerV8Settings), 64 m_workerV8Settings(workerV8Settings) {
66 m_inspectorNetworkCapability(inspectorNetworkCapability) {
67 m_contentSecurityPolicyHeaders = WTF::makeUnique<Vector<CSPHeaderAndType>>(); 65 m_contentSecurityPolicyHeaders = WTF::makeUnique<Vector<CSPHeaderAndType>>();
68 if (contentSecurityPolicyHeaders) { 66 if (contentSecurityPolicyHeaders) {
69 for (const auto& header : *contentSecurityPolicyHeaders) { 67 for (const auto& header : *contentSecurityPolicyHeaders) {
70 CSPHeaderAndType copiedHeader(header.first.isolatedCopy(), header.second); 68 CSPHeaderAndType copiedHeader(header.first.isolatedCopy(), header.second);
71 m_contentSecurityPolicyHeaders->push_back(copiedHeader); 69 m_contentSecurityPolicyHeaders->push_back(copiedHeader);
72 } 70 }
73 } 71 }
74 72
75 m_originTrialTokens = std::unique_ptr<Vector<String>>(new Vector<String>()); 73 m_originTrialTokens = std::unique_ptr<Vector<String>>(new Vector<String>());
76 if (originTrialTokens) { 74 if (originTrialTokens) {
77 for (const String& token : *originTrialTokens) 75 for (const String& token : *originTrialTokens)
78 m_originTrialTokens->push_back(token.isolatedCopy()); 76 m_originTrialTokens->push_back(token.isolatedCopy());
79 } 77 }
80 } 78 }
81 79
82 WorkerThreadStartupData::~WorkerThreadStartupData() {} 80 WorkerThreadStartupData::~WorkerThreadStartupData() {}
83 81
84 } // namespace blink 82 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698