| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 28 matching lines...) Expand all Loading... |
| 39 #include "core/loader/UniqueIdentifier.h" | 39 #include "core/loader/UniqueIdentifier.h" |
| 40 #include "modules/websockets/WebSocketChannelClient.h" | 40 #include "modules/websockets/WebSocketChannelClient.h" |
| 41 #include "platform/Logging.h" | 41 #include "platform/Logging.h" |
| 42 #include "platform/weborigin/SecurityOrigin.h" | 42 #include "platform/weborigin/SecurityOrigin.h" |
| 43 #include "public/platform/Platform.h" | 43 #include "public/platform/Platform.h" |
| 44 #include "public/platform/WebSocketHandshakeRequestInfo.h" | 44 #include "public/platform/WebSocketHandshakeRequestInfo.h" |
| 45 #include "public/platform/WebSocketHandshakeResponseInfo.h" | 45 #include "public/platform/WebSocketHandshakeResponseInfo.h" |
| 46 #include "public/platform/WebString.h" | 46 #include "public/platform/WebString.h" |
| 47 #include "public/platform/WebURL.h" | 47 #include "public/platform/WebURL.h" |
| 48 #include "public/platform/WebVector.h" | 48 #include "public/platform/WebVector.h" |
| 49 #include "wtf/ArrayBuffer.h" | |
| 50 #include "wtf/Vector.h" | |
| 51 #include "wtf/text/WTFString.h" | |
| 52 | 49 |
| 53 using blink::WebSocketHandle; | 50 using blink::WebSocketHandle; |
| 54 | 51 |
| 55 namespace WebCore { | 52 namespace WebCore { |
| 56 | 53 |
| 57 class NewWebSocketChannelImpl::BlobLoader : public FileReaderLoaderClient { | 54 class NewWebSocketChannelImpl::BlobLoader : public FileReaderLoaderClient { |
| 58 public: | 55 public: |
| 59 BlobLoader(PassRefPtr<BlobDataHandle>, NewWebSocketChannelImpl*); | 56 BlobLoader(PassRefPtr<BlobDataHandle>, NewWebSocketChannelImpl*); |
| 60 virtual ~BlobLoader() { } | 57 virtual ~BlobLoader() { } |
| 61 | 58 |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 if (errorCode == FileError::ABORT_ERR) { | 477 if (errorCode == FileError::ABORT_ERR) { |
| 481 // The error is caused by cancel(). | 478 // The error is caused by cancel(). |
| 482 return; | 479 return; |
| 483 } | 480 } |
| 484 // FIXME: Generate human-friendly reason message. | 481 // FIXME: Generate human-friendly reason message. |
| 485 failAsError("Failed to load Blob: error code = " + String::number(errorCode)
); | 482 failAsError("Failed to load Blob: error code = " + String::number(errorCode)
); |
| 486 // |this| can be deleted here. | 483 // |this| can be deleted here. |
| 487 } | 484 } |
| 488 | 485 |
| 489 } // namespace WebCore | 486 } // namespace WebCore |
| OLD | NEW |