OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
88 | 88 |
89 return context.release(); | 89 return context.release(); |
90 } | 90 } |
91 | 91 |
92 ServiceWorkerGlobalScope::ServiceWorkerGlobalScope(const KURL& url, const String & userAgent, ServiceWorkerThread* thread, double timeOrigin, const SecurityOrigi n* starterOrigin, PassOwnPtrWillBeRawPtr<WorkerClients> workerClients) | 92 ServiceWorkerGlobalScope::ServiceWorkerGlobalScope(const KURL& url, const String & userAgent, ServiceWorkerThread* thread, double timeOrigin, const SecurityOrigi n* starterOrigin, PassOwnPtrWillBeRawPtr<WorkerClients> workerClients) |
93 : WorkerGlobalScope(url, userAgent, thread, timeOrigin, starterOrigin, worke rClients) | 93 : WorkerGlobalScope(url, userAgent, thread, timeOrigin, starterOrigin, worke rClients) |
94 , m_didEvaluateScript(false) | 94 , m_didEvaluateScript(false) |
95 , m_hadErrorInTopLevelEventHandler(false) | 95 , m_hadErrorInTopLevelEventHandler(false) |
96 , m_eventNestingLevel(0) | 96 , m_eventNestingLevel(0) |
97 { | 97 { |
98 workerInspectorController()->registerModuleAgent(InspectorServiceWorkerCache Agent::create(this)); | 98 workerInspectorController()->registerModuleAgent(InspectorServiceWorkerCache Agent::create()); |
jsbell
2015/04/03 03:21:08
Is this still necessary, or can the Cache Storage
pfeldman
2015/04/03 09:15:58
Good point, it should only be in WebDevToolsAgentI
| |
99 } | 99 } |
100 | 100 |
101 ServiceWorkerGlobalScope::~ServiceWorkerGlobalScope() | 101 ServiceWorkerGlobalScope::~ServiceWorkerGlobalScope() |
102 { | 102 { |
103 } | 103 } |
104 | 104 |
105 void ServiceWorkerGlobalScope::didEvaluateWorkerScript() | 105 void ServiceWorkerGlobalScope::didEvaluateWorkerScript() |
106 { | 106 { |
107 m_didEvaluateScript = true; | 107 m_didEvaluateScript = true; |
108 } | 108 } |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
229 void ServiceWorkerGlobalScope::logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRe fPtrWillBeRawPtr<ScriptCallStack> callStack) | 229 void ServiceWorkerGlobalScope::logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRe fPtrWillBeRawPtr<ScriptCallStack> callStack) |
230 { | 230 { |
231 WorkerGlobalScope::logExceptionToConsole(errorMessage, scriptId, sourceURL, lineNumber, columnNumber, callStack); | 231 WorkerGlobalScope::logExceptionToConsole(errorMessage, scriptId, sourceURL, lineNumber, columnNumber, callStack); |
232 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(J SMessageSource, ErrorMessageLevel, errorMessage, sourceURL, lineNumber); | 232 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(J SMessageSource, ErrorMessageLevel, errorMessage, sourceURL, lineNumber); |
233 consoleMessage->setScriptId(scriptId); | 233 consoleMessage->setScriptId(scriptId); |
234 consoleMessage->setCallStack(callStack); | 234 consoleMessage->setCallStack(callStack); |
235 addMessageToWorkerConsole(consoleMessage.release()); | 235 addMessageToWorkerConsole(consoleMessage.release()); |
236 } | 236 } |
237 | 237 |
238 } // namespace blink | 238 } // namespace blink |
OLD | NEW |