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

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

Issue 1875593003: Revert of Store the list of trial tokens in OriginTrialContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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"
38 #include "core/workers/WorkerGlobalScope.h" 39 #include "core/workers/WorkerGlobalScope.h"
39 #include "core/workers/WorkerThread.h" 40 #include "core/workers/WorkerThread.h"
40 41
41 namespace blink { 42 namespace blink {
42 43
43 class ExecutionContext::PendingException { 44 class ExecutionContext::PendingException {
44 WTF_MAKE_NONCOPYABLE(PendingException); 45 WTF_MAKE_NONCOPYABLE(PendingException);
45 public: 46 public:
46 PendingException(const String& errorMessage, int lineNumber, int columnNumbe r, int scriptId, const String& sourceURL, PassRefPtr<ScriptCallStack> callStack) 47 PendingException(const String& errorMessage, int lineNumber, int columnNumbe r, int scriptId, const String& sourceURL, PassRefPtr<ScriptCallStack> callStack)
47 : m_errorMessage(errorMessage) 48 : m_errorMessage(errorMessage)
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 void ExecutionContext::setReferrerPolicy(ReferrerPolicy referrerPolicy) 262 void ExecutionContext::setReferrerPolicy(ReferrerPolicy referrerPolicy)
262 { 263 {
263 // When a referrer policy has already been set, the latest value takes prece dence. 264 // When a referrer policy has already been set, the latest value takes prece dence.
264 UseCounter::count(this, UseCounter::SetReferrerPolicy); 265 UseCounter::count(this, UseCounter::SetReferrerPolicy);
265 if (m_referrerPolicy != ReferrerPolicyDefault) 266 if (m_referrerPolicy != ReferrerPolicyDefault)
266 UseCounter::count(this, UseCounter::ResetReferrerPolicy); 267 UseCounter::count(this, UseCounter::ResetReferrerPolicy);
267 268
268 m_referrerPolicy = referrerPolicy; 269 m_referrerPolicy = referrerPolicy;
269 } 270 }
270 271
272 RawPtr<OriginTrialContext> ExecutionContext::createOriginTrialContext()
273 {
274 return nullptr;
275 }
276
271 void ExecutionContext::removeURLFromMemoryCache(const KURL& url) 277 void ExecutionContext::removeURLFromMemoryCache(const KURL& url)
272 { 278 {
273 memoryCache()->removeURLFromCache(url); 279 memoryCache()->removeURLFromCache(url);
274 } 280 }
275 281
276 DEFINE_TRACE(ExecutionContext) 282 DEFINE_TRACE(ExecutionContext)
277 { 283 {
278 visitor->trace(m_publicURLManager); 284 visitor->trace(m_publicURLManager);
279 ContextLifecycleNotifier::trace(visitor); 285 ContextLifecycleNotifier::trace(visitor);
280 Supplementable<ExecutionContext>::trace(visitor); 286 Supplementable<ExecutionContext>::trace(visitor);
281 } 287 }
282 288
283 } // namespace blink 289 } // 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