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

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

Issue 1126013003: v8::Isolate* should be the first parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Wrap function Change for v8::Isolate* , as it is no more optional argument Created 5 years, 7 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
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.h ('k') | no next file » | 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) 2009, 2011 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009, 2011 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 void WorkerGlobalScope::removeURLFromMemoryCache(const KURL& url) 377 void WorkerGlobalScope::removeURLFromMemoryCache(const KURL& url)
378 { 378 {
379 m_thread->workerLoaderProxy()->postTaskToLoader(createCrossThreadTask(&Worke rGlobalScope::removeURLFromMemoryCacheInternal, url)); 379 m_thread->workerLoaderProxy()->postTaskToLoader(createCrossThreadTask(&Worke rGlobalScope::removeURLFromMemoryCacheInternal, url));
380 } 380 }
381 381
382 void WorkerGlobalScope::removeURLFromMemoryCacheInternal(const KURL& url) 382 void WorkerGlobalScope::removeURLFromMemoryCacheInternal(const KURL& url)
383 { 383 {
384 memoryCache()->removeURLFromCache(url); 384 memoryCache()->removeURLFromCache(url);
385 } 385 }
386 386
387 v8::Local<v8::Object> WorkerGlobalScope::wrap(v8::Local<v8::Object> creationCont ext, v8::Isolate*) 387 v8::Local<v8::Object> WorkerGlobalScope::wrap(v8::Isolate*, v8::Local<v8::Object > creationContext)
388 { 388 {
389 // WorkerGlobalScope must never be wrapped with wrap method. The global 389 // WorkerGlobalScope must never be wrapped with wrap method. The global
390 // object of ECMAScript environment is used as the wrapper. 390 // object of ECMAScript environment is used as the wrapper.
391 RELEASE_ASSERT_NOT_REACHED(); 391 RELEASE_ASSERT_NOT_REACHED();
392 return v8::Local<v8::Object>(); 392 return v8::Local<v8::Object>();
393 } 393 }
394 394
395 v8::Local<v8::Object> WorkerGlobalScope::associateWithWrapper(v8::Isolate*, cons t WrapperTypeInfo*, v8::Local<v8::Object> wrapper) 395 v8::Local<v8::Object> WorkerGlobalScope::associateWithWrapper(v8::Isolate*, cons t WrapperTypeInfo*, v8::Local<v8::Object> wrapper)
396 { 396 {
397 RELEASE_ASSERT_NOT_REACHED(); // same as wrap method 397 RELEASE_ASSERT_NOT_REACHED(); // same as wrap method
(...skipping 12 matching lines...) Expand all
410 visitor->trace(m_timers); 410 visitor->trace(m_timers);
411 visitor->trace(m_messageStorage); 411 visitor->trace(m_messageStorage);
412 visitor->trace(m_pendingMessages); 412 visitor->trace(m_pendingMessages);
413 HeapSupplementable<WorkerGlobalScope>::trace(visitor); 413 HeapSupplementable<WorkerGlobalScope>::trace(visitor);
414 #endif 414 #endif
415 ExecutionContext::trace(visitor); 415 ExecutionContext::trace(visitor);
416 EventTargetWithInlineData::trace(visitor); 416 EventTargetWithInlineData::trace(visitor);
417 } 417 }
418 418
419 } // namespace blink 419 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698