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

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

Issue 20890003: Limit console messages' automatic collection of parser state. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline "fast/frames/sandboxed-iframe-autofocus-denied.html" Created 7 years, 4 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/page/PageConsole.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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 virtual void refEventTarget() OVERRIDE { ref(); } 145 virtual void refEventTarget() OVERRIDE { ref(); }
146 virtual void derefEventTarget() OVERRIDE { deref(); } 146 virtual void derefEventTarget() OVERRIDE { deref(); }
147 virtual EventTargetData* eventTargetData() OVERRIDE; 147 virtual EventTargetData* eventTargetData() OVERRIDE;
148 virtual EventTargetData* ensureEventTargetData() OVERRIDE; 148 virtual EventTargetData* ensureEventTargetData() OVERRIDE;
149 149
150 virtual const KURL& virtualURL() const OVERRIDE; 150 virtual const KURL& virtualURL() const OVERRIDE;
151 virtual KURL virtualCompleteURL(const String&) const; 151 virtual KURL virtualCompleteURL(const String&) const;
152 152
153 virtual void addMessage(MessageSource, MessageLevel, const String& messa ge, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, S criptState* = 0, unsigned long requestIdentifier = 0) OVERRIDE; 153 virtual void addMessage(MessageSource, MessageLevel, const String& messa ge, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, S criptState* = 0, unsigned long requestIdentifier = 0) OVERRIDE;
154 virtual void addConsoleMessage(MessageSource, MessageLevel, const String & message, unsigned long requestIdentifier = 0) OVERRIDE; 154 virtual void addConsoleMessage(MessageSource, MessageLevel, const String & message, unsigned long requestIdentifier = 0, ParserStateCollectionDisposition = DoNotForceParserStateCollection) OVERRIDE;
155 155
156 virtual EventTarget* errorEventTarget() OVERRIDE; 156 virtual EventTarget* errorEventTarget() OVERRIDE;
157 157
158 KURL m_url; 158 KURL m_url;
159 String m_userAgent; 159 String m_userAgent;
160 160
161 mutable RefPtr<WorkerLocation> m_location; 161 mutable RefPtr<WorkerLocation> m_location;
162 mutable RefPtr<WorkerNavigator> m_navigator; 162 mutable RefPtr<WorkerNavigator> m_navigator;
163 163
164 OwnPtr<WorkerScriptController> m_script; 164 OwnPtr<WorkerScriptController> m_script;
(...skipping 15 matching lines...) Expand all
180 180
181 inline WorkerGlobalScope* toWorkerGlobalScope(ScriptExecutionContext* context) 181 inline WorkerGlobalScope* toWorkerGlobalScope(ScriptExecutionContext* context)
182 { 182 {
183 ASSERT_WITH_SECURITY_IMPLICATION(!context || context->isWorkerGlobalScope()) ; 183 ASSERT_WITH_SECURITY_IMPLICATION(!context || context->isWorkerGlobalScope()) ;
184 return static_cast<WorkerGlobalScope*>(context); 184 return static_cast<WorkerGlobalScope*>(context);
185 } 185 }
186 186
187 } // namespace WebCore 187 } // namespace WebCore
188 188
189 #endif // WorkerGlobalScope_h 189 #endif // WorkerGlobalScope_h
OLDNEW
« no previous file with comments | « Source/core/page/PageConsole.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698