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

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: Created 4 years, 9 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 void ExecutionContext::setReferrerPolicy(ReferrerPolicy referrerPolicy) 256 void ExecutionContext::setReferrerPolicy(ReferrerPolicy referrerPolicy)
258 { 257 {
259 // When a referrer policy has already been set, the latest value takes prece dence. 258 // When a referrer policy has already been set, the latest value takes prece dence.
260 UseCounter::count(this, UseCounter::SetReferrerPolicy); 259 UseCounter::count(this, UseCounter::SetReferrerPolicy);
261 if (m_referrerPolicy != ReferrerPolicyDefault) 260 if (m_referrerPolicy != ReferrerPolicyDefault)
262 UseCounter::count(this, UseCounter::ResetReferrerPolicy); 261 UseCounter::count(this, UseCounter::ResetReferrerPolicy);
263 262
264 m_referrerPolicy = referrerPolicy; 263 m_referrerPolicy = referrerPolicy;
265 } 264 }
266 265
267 PassOwnPtrWillBeRawPtr<OriginTrialContext> ExecutionContext::createOriginTrialCo ntext()
268 {
269 return nullptr;
270 }
271
272 void ExecutionContext::removeURLFromMemoryCache(const KURL& url) 266 void ExecutionContext::removeURLFromMemoryCache(const KURL& url)
273 { 267 {
274 memoryCache()->removeURLFromCache(url); 268 memoryCache()->removeURLFromCache(url);
275 } 269 }
276 270
277 DEFINE_TRACE(ExecutionContext) 271 DEFINE_TRACE(ExecutionContext)
278 { 272 {
279 #if ENABLE(OILPAN) 273 #if ENABLE(OILPAN)
280 visitor->trace(m_publicURLManager); 274 visitor->trace(m_publicURLManager);
281 HeapSupplementable<ExecutionContext>::trace(visitor); 275 HeapSupplementable<ExecutionContext>::trace(visitor);
282 #endif 276 #endif
283 ContextLifecycleNotifier::trace(visitor); 277 ContextLifecycleNotifier::trace(visitor);
284 } 278 }
285 279
286 } // namespace blink 280 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698