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

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

Issue 1018863002: compositor-worker: Introduce CompositorWorker. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/templates/interface_base.cpp ('k') | Source/core/workers/Worker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 : public ContextLifecycleNotifier, public WillBeHeapSupplementable<Execution Context> { 60 : public ContextLifecycleNotifier, public WillBeHeapSupplementable<Execution Context> {
61 WTF_MAKE_NONCOPYABLE(ExecutionContext); 61 WTF_MAKE_NONCOPYABLE(ExecutionContext);
62 public: 62 public:
63 DECLARE_VIRTUAL_TRACE(); 63 DECLARE_VIRTUAL_TRACE();
64 64
65 virtual bool isDocument() const { return false; } 65 virtual bool isDocument() const { return false; }
66 virtual bool isWorkerGlobalScope() const { return false; } 66 virtual bool isWorkerGlobalScope() const { return false; }
67 virtual bool isDedicatedWorkerGlobalScope() const { return false; } 67 virtual bool isDedicatedWorkerGlobalScope() const { return false; }
68 virtual bool isSharedWorkerGlobalScope() const { return false; } 68 virtual bool isSharedWorkerGlobalScope() const { return false; }
69 virtual bool isServiceWorkerGlobalScope() const { return false; } 69 virtual bool isServiceWorkerGlobalScope() const { return false; }
70 virtual bool isCompositorWorkerGlobalScope() const { return false; }
70 virtual bool isJSExecutionForbidden() const { return false; } 71 virtual bool isJSExecutionForbidden() const { return false; }
71 72
72 virtual bool isContextThread() const { return true; } 73 virtual bool isContextThread() const { return true; }
73 74
74 SecurityOrigin* securityOrigin(); 75 SecurityOrigin* securityOrigin();
75 ContentSecurityPolicy* contentSecurityPolicy(); 76 ContentSecurityPolicy* contentSecurityPolicy();
76 const KURL& url() const; 77 const KURL& url() const;
77 KURL completeURL(const String& url) const; 78 KURL completeURL(const String& url) const;
78 virtual void disableEval(const String& errorMessage) = 0; 79 virtual void disableEval(const String& errorMessage) = 0;
79 virtual LocalDOMWindow* executingWindow() { return 0; } 80 virtual LocalDOMWindow* executingWindow() { return 0; }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to 176 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to
176 // increment and decrement the counter. 177 // increment and decrement the counter.
177 int m_windowInteractionTokens; 178 int m_windowInteractionTokens;
178 179
179 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks; 180 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks;
180 }; 181 };
181 182
182 } // namespace blink 183 } // namespace blink
183 184
184 #endif // ExecutionContext_h 185 #endif // ExecutionContext_h
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface_base.cpp ('k') | Source/core/workers/Worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698