| OLD | NEW |
| 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 WorkerClients* worker_clients) | 310 WorkerClients* worker_clients) |
| 311 : url_(url), | 311 : url_(url), |
| 312 user_agent_(user_agent), | 312 user_agent_(user_agent), |
| 313 v8_cache_options_(kV8CacheOptionsDefault), | 313 v8_cache_options_(kV8CacheOptionsDefault), |
| 314 script_controller_( | 314 script_controller_( |
| 315 WorkerOrWorkletScriptController::Create(this, thread->GetIsolate())), | 315 WorkerOrWorkletScriptController::Create(this, thread->GetIsolate())), |
| 316 thread_(thread), | 316 thread_(thread), |
| 317 closing_(false), | 317 closing_(false), |
| 318 event_queue_(WorkerEventQueue::Create(this)), | 318 event_queue_(WorkerEventQueue::Create(this)), |
| 319 worker_clients_(worker_clients), | 319 worker_clients_(worker_clients), |
| 320 timers_( | 320 timers_(TaskRunnerHelper::Get(TaskType::kTimer, this)), |
| 321 Platform::Current()->CurrentThread()->Scheduler()->TimerTaskRunner()), | |
| 322 time_origin_(time_origin), | 321 time_origin_(time_origin), |
| 323 last_pending_error_event_id_(0) { | 322 last_pending_error_event_id_(0) { |
| 324 InstanceCounters::IncrementCounter( | 323 InstanceCounters::IncrementCounter( |
| 325 InstanceCounters::kWorkerGlobalScopeCounter); | 324 InstanceCounters::kWorkerGlobalScopeCounter); |
| 326 SetSecurityOrigin(SecurityOrigin::Create(url)); | 325 SetSecurityOrigin(SecurityOrigin::Create(url)); |
| 327 if (starter_origin_privilage_data) | 326 if (starter_origin_privilage_data) |
| 328 GetSecurityOrigin()->TransferPrivilegesFrom( | 327 GetSecurityOrigin()->TransferPrivilegesFrom( |
| 329 std::move(starter_origin_privilage_data)); | 328 std::move(starter_origin_privilage_data)); |
| 330 | 329 |
| 331 if (worker_clients_) | 330 if (worker_clients_) |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 visitor->Trace(timers_); | 375 visitor->Trace(timers_); |
| 377 visitor->Trace(event_listeners_); | 376 visitor->Trace(event_listeners_); |
| 378 visitor->Trace(pending_error_events_); | 377 visitor->Trace(pending_error_events_); |
| 379 ExecutionContext::Trace(visitor); | 378 ExecutionContext::Trace(visitor); |
| 380 EventTargetWithInlineData::Trace(visitor); | 379 EventTargetWithInlineData::Trace(visitor); |
| 381 SecurityContext::Trace(visitor); | 380 SecurityContext::Trace(visitor); |
| 382 Supplementable<WorkerGlobalScope>::Trace(visitor); | 381 Supplementable<WorkerGlobalScope>::Trace(visitor); |
| 383 } | 382 } |
| 384 | 383 |
| 385 } // namespace blink | 384 } // namespace blink |
| OLD | NEW |