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

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

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 1 month 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/core/dom/Element.idl ('k') | Source/core/events/EventTargetFactory.in » ('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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 : public LifecycleContext<ExecutionContext> 59 : public LifecycleContext<ExecutionContext>
60 , public WillBeHeapSupplementable<ExecutionContext> { 60 , public WillBeHeapSupplementable<ExecutionContext> {
61 public: 61 public:
62 virtual void trace(Visitor*) override; 62 virtual void trace(Visitor*) override;
63 63
64 virtual bool isDocument() const { return false; } 64 virtual bool isDocument() const { return false; }
65 virtual bool isWorkerGlobalScope() const { return false; } 65 virtual bool isWorkerGlobalScope() const { return false; }
66 virtual bool isDedicatedWorkerGlobalScope() const { return false; } 66 virtual bool isDedicatedWorkerGlobalScope() const { return false; }
67 virtual bool isSharedWorkerGlobalScope() const { return false; } 67 virtual bool isSharedWorkerGlobalScope() const { return false; }
68 virtual bool isServiceWorkerGlobalScope() const { return false; } 68 virtual bool isServiceWorkerGlobalScope() const { return false; }
69 virtual bool isUIWorkerGlobalScope() const { return false; }
69 virtual bool isJSExecutionForbidden() const { return false; } 70 virtual bool isJSExecutionForbidden() const { return false; }
70 SecurityOrigin* securityOrigin(); 71 SecurityOrigin* securityOrigin();
71 ContentSecurityPolicy* contentSecurityPolicy(); 72 ContentSecurityPolicy* contentSecurityPolicy();
72 virtual void didUpdateSecurityOrigin() = 0; 73 virtual void didUpdateSecurityOrigin() = 0;
73 const KURL& url() const; 74 const KURL& url() const;
74 KURL completeURL(const String& url) const; 75 KURL completeURL(const String& url) const;
75 virtual void disableEval(const String& errorMessage) = 0; 76 virtual void disableEval(const String& errorMessage) = 0;
76 virtual LocalDOMWindow* executingWindow() { return 0; } 77 virtual LocalDOMWindow* executingWindow() { return 0; }
77 virtual String userAgent(const KURL&) const = 0; 78 virtual String userAgent(const KURL&) const = 0;
78 virtual void postTask(PassOwnPtr<ExecutionContextTask>) = 0; // Executes the task on context's thread asynchronously. 79 virtual void postTask(PassOwnPtr<ExecutionContextTask>) = 0; // Executes the task on context's thread asynchronously.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 173
173 // The location of this member is important; to make sure contextDestroyed() notification on 174 // The location of this member is important; to make sure contextDestroyed() notification on
174 // ExecutionContext's members (notably m_timeouts) is called before they are destructed, 175 // ExecutionContext's members (notably m_timeouts) is called before they are destructed,
175 // m_lifecycleNotifer should be placed *after* such members. 176 // m_lifecycleNotifer should be placed *after* such members.
176 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; 177 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier;
177 }; 178 };
178 179
179 } // namespace blink 180 } // namespace blink
180 181
181 #endif // ExecutionContext_h 182 #endif // ExecutionContext_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.idl ('k') | Source/core/events/EventTargetFactory.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698