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

Side by Side Diff: Source/core/dom/ExecutionContext.h

Issue 947393002: InlinedVisitor: Migrate dom to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 class EventTarget; 47 class EventTarget;
48 class ExecutionContextTask; 48 class ExecutionContextTask;
49 class LocalDOMWindow; 49 class LocalDOMWindow;
50 class PublicURLManager; 50 class PublicURLManager;
51 class SecurityOrigin; 51 class SecurityOrigin;
52 class ScriptCallStack; 52 class ScriptCallStack;
53 53
54 class ExecutionContext 54 class ExecutionContext
55 : public ContextLifecycleNotifier, public WillBeHeapSupplementable<Execution Context> { 55 : public ContextLifecycleNotifier, public WillBeHeapSupplementable<Execution Context> {
56 public: 56 public:
57 virtual void trace(Visitor*) override; 57 DECLARE_VIRTUAL_TRACE();
58 58
59 virtual bool isDocument() const { return false; } 59 virtual bool isDocument() const { return false; }
60 virtual bool isWorkerGlobalScope() const { return false; } 60 virtual bool isWorkerGlobalScope() const { return false; }
61 virtual bool isDedicatedWorkerGlobalScope() const { return false; } 61 virtual bool isDedicatedWorkerGlobalScope() const { return false; }
62 virtual bool isSharedWorkerGlobalScope() const { return false; } 62 virtual bool isSharedWorkerGlobalScope() const { return false; }
63 virtual bool isServiceWorkerGlobalScope() const { return false; } 63 virtual bool isServiceWorkerGlobalScope() const { return false; }
64 virtual bool isJSExecutionForbidden() const { return false; } 64 virtual bool isJSExecutionForbidden() const { return false; }
65 SecurityOrigin* securityOrigin(); 65 SecurityOrigin* securityOrigin();
66 ContentSecurityPolicy* contentSecurityPolicy(); 66 ContentSecurityPolicy* contentSecurityPolicy();
67 const KURL& url() const; 67 const KURL& url() const;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Counter that keeps track of how many window interaction calls are allowed 167 // Counter that keeps track of how many window interaction calls are allowed
168 // for this ExecutionContext. Callers are expected to call 168 // for this ExecutionContext. Callers are expected to call
169 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to 169 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to
170 // increment and decrement the counter. 170 // increment and decrement the counter.
171 int m_windowInteractionTokens; 171 int m_windowInteractionTokens;
172 }; 172 };
173 173
174 } // namespace blink 174 } // namespace blink
175 175
176 #endif // ExecutionContext_h 176 #endif // ExecutionContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698