| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 , m_sendRequestResult(WebSocketChannel::SendFail) | 103 , m_sendRequestResult(WebSocketChannel::SendFail) |
| 104 , m_bufferedAmount(0) | 104 , m_bufferedAmount(0) |
| 105 { | 105 { |
| 106 } | 106 } |
| 107 | 107 |
| 108 OwnPtr<blink::WebWaitableEvent> m_event; | 108 OwnPtr<blink::WebWaitableEvent> m_event; |
| 109 WebSocketChannel::SendResult m_sendRequestResult; | 109 WebSocketChannel::SendResult m_sendRequestResult; |
| 110 unsigned long m_bufferedAmount; | 110 unsigned long m_bufferedAmount; |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel(WorkerGlobalS
cope* context, WebSocketChannelClient* client, const String& sourceURL, unsigned
lineNumber) | 113 WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel(WorkerGlobalS
cope& context, WebSocketChannelClient* client, const String& sourceURL, unsigned
lineNumber) |
| 114 : m_workerGlobalScope(context) | 114 : m_workerGlobalScope(context) |
| 115 , m_workerClientWrapper(ThreadableWebSocketChannelClientWrapper::create(clie
nt)) | 115 , m_workerClientWrapper(ThreadableWebSocketChannelClientWrapper::create(clie
nt)) |
| 116 , m_bridge(Bridge::create(m_workerClientWrapper, m_workerGlobalScope)) | 116 , m_bridge(Bridge::create(m_workerClientWrapper, m_workerGlobalScope)) |
| 117 , m_sourceURLAtConnection(sourceURL) | 117 , m_sourceURLAtConnection(sourceURL) |
| 118 , m_lineNumberAtConnection(lineNumber) | 118 , m_lineNumberAtConnection(lineNumber) |
| 119 { | 119 { |
| 120 m_bridge->initialize(sourceURL, lineNumber); | 120 m_bridge->initialize(sourceURL, lineNumber); |
| 121 } | 121 } |
| 122 | 122 |
| 123 WorkerThreadableWebSocketChannel::~WorkerThreadableWebSocketChannel() | 123 WorkerThreadableWebSocketChannel::~WorkerThreadableWebSocketChannel() |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 } | 575 } |
| 576 | 576 |
| 577 void WorkerThreadableWebSocketChannel::Bridge::terminatePeer() | 577 void WorkerThreadableWebSocketChannel::Bridge::terminatePeer() |
| 578 { | 578 { |
| 579 m_loaderProxy.postTaskToLoader(CallClosureTask::create(bind(&Peer::destroy,
m_peer))); | 579 m_loaderProxy.postTaskToLoader(CallClosureTask::create(bind(&Peer::destroy,
m_peer))); |
| 580 m_workerGlobalScope = nullptr; | 580 m_workerGlobalScope = nullptr; |
| 581 m_syncHelper = 0; | 581 m_syncHelper = 0; |
| 582 } | 582 } |
| 583 | 583 |
| 584 } // namespace WebCore | 584 } // namespace WebCore |
| OLD | NEW |