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

Side by Side Diff: third_party/WebKit/Source/core/dom/ExecutionContext.cpp

Issue 1833063002: Store the list of trial tokens in OriginTrialContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove script generated related changes from this CL 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2012 Google Inc. All Rights Reserved. 3 * Copyright (C) 2012 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 17 matching lines...) Expand all
28 #include "core/dom/ExecutionContext.h" 28 #include "core/dom/ExecutionContext.h"
29 29
30 #include "bindings/core/v8/ScriptCallStack.h" 30 #include "bindings/core/v8/ScriptCallStack.h"
31 #include "core/dom/ExecutionContextTask.h" 31 #include "core/dom/ExecutionContextTask.h"
32 #include "core/events/ErrorEvent.h" 32 #include "core/events/ErrorEvent.h"
33 #include "core/events/EventTarget.h" 33 #include "core/events/EventTarget.h"
34 #include "core/fetch/MemoryCache.h" 34 #include "core/fetch/MemoryCache.h"
35 #include "core/frame/UseCounter.h" 35 #include "core/frame/UseCounter.h"
36 #include "core/html/PublicURLManager.h" 36 #include "core/html/PublicURLManager.h"
37 #include "core/inspector/InspectorInstrumentation.h" 37 #include "core/inspector/InspectorInstrumentation.h"
38 #include "core/origin_trials/OriginTrialContext.h"
39 #include "core/workers/WorkerGlobalScope.h" 38 #include "core/workers/WorkerGlobalScope.h"
40 #include "core/workers/WorkerThread.h" 39 #include "core/workers/WorkerThread.h"
41 40
42 namespace blink { 41 namespace blink {
43 42
44 class ExecutionContext::PendingException { 43 class ExecutionContext::PendingException {
45 WTF_MAKE_NONCOPYABLE(PendingException); 44 WTF_MAKE_NONCOPYABLE(PendingException);
46 public: 45 public:
47 PendingException(const String& errorMessage, int lineNumber, int columnNumbe r, int scriptId, const String& sourceURL, PassRefPtr<ScriptCallStack> callStack) 46 PendingException(const String& errorMessage, int lineNumber, int columnNumbe r, int scriptId, const String& sourceURL, PassRefPtr<ScriptCallStack> callStack)
48 : m_errorMessage(errorMessage) 47 : m_errorMessage(errorMessage)
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 void ExecutionContext::setReferrerPolicy(ReferrerPolicy referrerPolicy) 261 void ExecutionContext::setReferrerPolicy(ReferrerPolicy referrerPolicy)
263 { 262 {
264 // When a referrer policy has already been set, the latest value takes prece dence. 263 // When a referrer policy has already been set, the latest value takes prece dence.
265 UseCounter::count(this, UseCounter::SetReferrerPolicy); 264 UseCounter::count(this, UseCounter::SetReferrerPolicy);
266 if (m_referrerPolicy != ReferrerPolicyDefault) 265 if (m_referrerPolicy != ReferrerPolicyDefault)
267 UseCounter::count(this, UseCounter::ResetReferrerPolicy); 266 UseCounter::count(this, UseCounter::ResetReferrerPolicy);
268 267
269 m_referrerPolicy = referrerPolicy; 268 m_referrerPolicy = referrerPolicy;
270 } 269 }
271 270
272 RawPtr<OriginTrialContext> ExecutionContext::createOriginTrialContext()
273 {
274 return nullptr;
275 }
276
277 void ExecutionContext::removeURLFromMemoryCache(const KURL& url) 271 void ExecutionContext::removeURLFromMemoryCache(const KURL& url)
278 { 272 {
279 memoryCache()->removeURLFromCache(url); 273 memoryCache()->removeURLFromCache(url);
280 } 274 }
281 275
282 DEFINE_TRACE(ExecutionContext) 276 DEFINE_TRACE(ExecutionContext)
283 { 277 {
284 visitor->trace(m_publicURLManager); 278 visitor->trace(m_publicURLManager);
285 ContextLifecycleNotifier::trace(visitor); 279 ContextLifecycleNotifier::trace(visitor);
286 Supplementable<ExecutionContext>::trace(visitor); 280 Supplementable<ExecutionContext>::trace(visitor);
287 } 281 }
288 282
289 } // namespace blink 283 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContext.h ('k') | third_party/WebKit/Source/core/loader/HttpEquiv.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698