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

Side by Side Diff: Source/core/workers/WorkerGlobalScope.h

Issue 325143002: Oilpan: Prepare moving inspector script related classes to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 6 years, 6 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/core/workers/WorkerConsole.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('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, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 using SecurityContext::securityOrigin; 138 using SecurityContext::securityOrigin;
139 using SecurityContext::contentSecurityPolicy; 139 using SecurityContext::contentSecurityPolicy;
140 140
141 virtual void trace(Visitor*) OVERRIDE; 141 virtual void trace(Visitor*) OVERRIDE;
142 142
143 protected: 143 protected:
144 WorkerGlobalScope(const KURL&, const String& userAgent, WorkerThread*, d ouble timeOrigin, PassOwnPtrWillBeRawPtr<WorkerClients>); 144 WorkerGlobalScope(const KURL&, const String& userAgent, WorkerThread*, d ouble timeOrigin, PassOwnPtrWillBeRawPtr<WorkerClients>);
145 void applyContentSecurityPolicyFromString(const String& contentSecurityP olicy, ContentSecurityPolicyHeaderType); 145 void applyContentSecurityPolicyFromString(const String& contentSecurityP olicy, ContentSecurityPolicyHeaderType);
146 146
147 virtual void logExceptionToConsole(const String& errorMessage, const Str ing& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) O VERRIDE; 147 virtual void logExceptionToConsole(const String& errorMessage, const Str ing& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptC allStack>) OVERRIDE;
148 void addMessageToWorkerConsole(MessageSource, MessageLevel, const String & message, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallSt ack>, ScriptState*); 148 void addMessageToWorkerConsole(MessageSource, MessageLevel, const String & message, const String& sourceURL, unsigned lineNumber, PassRefPtrWillBeRawPtr< ScriptCallStack>, ScriptState*);
149 149
150 private: 150 private:
151 #if !ENABLE(OILPAN) 151 #if !ENABLE(OILPAN)
152 virtual void refExecutionContext() OVERRIDE FINAL { ref(); } 152 virtual void refExecutionContext() OVERRIDE FINAL { ref(); }
153 virtual void derefExecutionContext() OVERRIDE FINAL { deref(); } 153 virtual void derefExecutionContext() OVERRIDE FINAL { deref(); }
154 #endif 154 #endif
155 155
156 virtual const KURL& virtualURL() const OVERRIDE FINAL; 156 virtual const KURL& virtualURL() const OVERRIDE FINAL;
157 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL; 157 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL;
158 158
(...skipping 22 matching lines...) Expand all
181 181
182 double m_timeOrigin; 182 double m_timeOrigin;
183 TerminationObserver* m_terminationObserver; 183 TerminationObserver* m_terminationObserver;
184 }; 184 };
185 185
186 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope()); 186 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope());
187 187
188 } // namespace WebCore 188 } // namespace WebCore
189 189
190 #endif // WorkerGlobalScope_h 190 #endif // WorkerGlobalScope_h
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerConsole.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698