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

Side by Side Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp

Issue 1925583003: Replace AllowCrossThreadAccess() + non-GCed pointers with crossThreadUnretained() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Kuroneko_4
Patch Set: Rebase. Created 4 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
OLDNEW
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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 } 223 }
224 224
225 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage(ConsoleMessage* console Message) 225 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage(ConsoleMessage* console Message)
226 { 226 {
227 client().reportConsoleMessage(consoleMessage->source(), consoleMessage->leve l(), consoleMessage->message(), consoleMessage->location()->lineNumber(), consol eMessage->location()->url()); 227 client().reportConsoleMessage(consoleMessage->source(), consoleMessage->leve l(), consoleMessage->message(), consoleMessage->location()->lineNumber(), consol eMessage->location()->url());
228 } 228 }
229 229
230 void ServiceWorkerGlobalScopeProxy::postMessageToPageInspector(const String& mes sage) 230 void ServiceWorkerGlobalScopeProxy::postMessageToPageInspector(const String& mes sage)
231 { 231 {
232 DCHECK(m_embeddedWorker); 232 DCHECK(m_embeddedWorker);
233 document().postInspectorTask(BLINK_FROM_HERE, createCrossThreadTask(&WebEmbe ddedWorkerImpl::postMessageToPageInspector, AllowCrossThreadAccess(m_embeddedWor ker), message)); 233 document().postInspectorTask(BLINK_FROM_HERE, createCrossThreadTask(&WebEmbe ddedWorkerImpl::postMessageToPageInspector, crossThreadUnretained(m_embeddedWork er), message));
234 } 234 }
235 235
236 void ServiceWorkerGlobalScopeProxy::didEvaluateWorkerScript(bool success) 236 void ServiceWorkerGlobalScopeProxy::didEvaluateWorkerScript(bool success)
237 { 237 {
238 client().didEvaluateWorkerScript(success); 238 client().didEvaluateWorkerScript(success);
239 } 239 }
240 240
241 void ServiceWorkerGlobalScopeProxy::didInitializeWorkerContext() 241 void ServiceWorkerGlobalScopeProxy::didInitializeWorkerContext()
242 { 242 {
243 ScriptState::Scope scope(workerGlobalScope()->scriptController()->getScriptS tate()); 243 ScriptState::Scope scope(workerGlobalScope()->scriptController()->getScriptS tate());
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 return *m_document; 298 return *m_document;
299 } 299 }
300 300
301 ServiceWorkerGlobalScope* ServiceWorkerGlobalScopeProxy::workerGlobalScope() con st 301 ServiceWorkerGlobalScope* ServiceWorkerGlobalScopeProxy::workerGlobalScope() con st
302 { 302 {
303 DCHECK(m_workerGlobalScope); 303 DCHECK(m_workerGlobalScope);
304 return m_workerGlobalScope; 304 return m_workerGlobalScope;
305 } 305 }
306 306
307 } // namespace blink 307 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/CompositorMutatorImpl.cpp ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698