| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 | 405 |
| 406 void WebSharedWorkerImpl::ReattachDevTools(const WebString& host_id, | 406 void WebSharedWorkerImpl::ReattachDevTools(const WebString& host_id, |
| 407 int session_id, | 407 int session_id, |
| 408 const WebString& saved_state) { | 408 const WebString& saved_state) { |
| 409 WebDevToolsAgent* devtools_agent = main_frame_->DevToolsAgent(); | 409 WebDevToolsAgent* devtools_agent = main_frame_->DevToolsAgent(); |
| 410 if (devtools_agent) | 410 if (devtools_agent) |
| 411 devtools_agent->Reattach(host_id, session_id, saved_state); | 411 devtools_agent->Reattach(host_id, session_id, saved_state); |
| 412 ResumeStartup(); | 412 ResumeStartup(); |
| 413 } | 413 } |
| 414 | 414 |
| 415 void WebSharedWorkerImpl::DetachDevTools() { | 415 void WebSharedWorkerImpl::DetachDevTools(int session_id) { |
| 416 WebDevToolsAgent* devtools_agent = main_frame_->DevToolsAgent(); | 416 WebDevToolsAgent* devtools_agent = main_frame_->DevToolsAgent(); |
| 417 if (devtools_agent) | 417 if (devtools_agent) |
| 418 devtools_agent->Detach(); | 418 devtools_agent->Detach(session_id); |
| 419 } | 419 } |
| 420 | 420 |
| 421 void WebSharedWorkerImpl::DispatchDevToolsMessage(int session_id, | 421 void WebSharedWorkerImpl::DispatchDevToolsMessage(int session_id, |
| 422 int call_id, | 422 int call_id, |
| 423 const WebString& method, | 423 const WebString& method, |
| 424 const WebString& message) { | 424 const WebString& message) { |
| 425 if (asked_to_terminate_) | 425 if (asked_to_terminate_) |
| 426 return; | 426 return; |
| 427 WebDevToolsAgent* devtools_agent = main_frame_->DevToolsAgent(); | 427 WebDevToolsAgent* devtools_agent = main_frame_->DevToolsAgent(); |
| 428 if (devtools_agent) | 428 if (devtools_agent) |
| 429 devtools_agent->DispatchOnInspectorBackend(session_id, call_id, method, | 429 devtools_agent->DispatchOnInspectorBackend(session_id, call_id, method, |
| 430 message); | 430 message); |
| 431 } | 431 } |
| 432 | 432 |
| 433 WebSharedWorker* WebSharedWorker::Create(WebSharedWorkerClient* client) { | 433 WebSharedWorker* WebSharedWorker::Create(WebSharedWorkerClient* client) { |
| 434 return new WebSharedWorkerImpl(client); | 434 return new WebSharedWorkerImpl(client); |
| 435 } | 435 } |
| 436 | 436 |
| 437 } // namespace blink | 437 } // namespace blink |
| OLD | NEW |