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

Side by Side Diff: third_party/WebKit/Source/core/loader/ThreadableLoader.h

Issue 1835773002: Rename AtomicString::string() to AtomicString::getString(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows Created 4 years, 8 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) 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698