OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 m_loaderProxy->postTaskToLoader(task); | 469 m_loaderProxy->postTaskToLoader(task); |
470 | 470 |
471 // We wait for the syncHelper event even if a shutdown event is fired. | 471 // We wait for the syncHelper event even if a shutdown event is fired. |
472 // See https://codereview.chromium.org/267323004/#msg43 for why we need to w
ait this. | 472 // See https://codereview.chromium.org/267323004/#msg43 for why we need to w
ait this. |
473 SafePointScope scope(BlinkGC::HeapPointersOnStack); | 473 SafePointScope scope(BlinkGC::HeapPointersOnStack); |
474 m_syncHelper->wait(); | 474 m_syncHelper->wait(); |
475 // This is checking whether a shutdown event is fired or not. | 475 // This is checking whether a shutdown event is fired or not. |
476 return !m_workerGlobalScope->thread()->terminated(); | 476 return !m_workerGlobalScope->thread()->terminated(); |
477 } | 477 } |
478 | 478 |
479 void Bridge::peerShouldBeDisconnected() | |
480 { | |
481 RELEASE_ASSERT(!m_peer); | |
482 } | |
483 | |
484 DEFINE_TRACE(Bridge) | 479 DEFINE_TRACE(Bridge) |
485 { | 480 { |
486 visitor->trace(m_client); | 481 visitor->trace(m_client); |
487 visitor->trace(m_workerGlobalScope); | 482 visitor->trace(m_workerGlobalScope); |
488 visitor->trace(m_syncHelper); | 483 visitor->trace(m_syncHelper); |
489 visitor->trace(m_peer); | 484 visitor->trace(m_peer); |
490 } | 485 } |
491 | 486 |
492 } // namespace blink | 487 } // namespace blink |
OLD | NEW |