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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 49 |
50 using blink::WebSocketHandle; | 50 using blink::WebSocketHandle; |
51 | 51 |
52 namespace WebCore { | 52 namespace WebCore { |
53 | 53 |
54 class NewWebSocketChannelImpl::BlobLoader : public FileReaderLoaderClient { | 54 class NewWebSocketChannelImpl::BlobLoader FINAL : public FileReaderLoaderClient
{ |
55 public: | 55 public: |
56 BlobLoader(PassRefPtr<BlobDataHandle>, NewWebSocketChannelImpl*); | 56 BlobLoader(PassRefPtr<BlobDataHandle>, NewWebSocketChannelImpl*); |
57 virtual ~BlobLoader() { } | 57 virtual ~BlobLoader() { } |
58 | 58 |
59 void cancel(); | 59 void cancel(); |
60 | 60 |
61 // FileReaderLoaderClient functions. | 61 // FileReaderLoaderClient functions. |
62 virtual void didStartLoading() OVERRIDE { } | 62 virtual void didStartLoading() OVERRIDE { } |
63 virtual void didReceiveData() OVERRIDE { } | 63 virtual void didReceiveData() OVERRIDE { } |
64 virtual void didFinishLoading() OVERRIDE; | 64 virtual void didFinishLoading() OVERRIDE; |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 if (errorCode == FileError::ABORT_ERR) { | 477 if (errorCode == FileError::ABORT_ERR) { |
478 // The error is caused by cancel(). | 478 // The error is caused by cancel(). |
479 return; | 479 return; |
480 } | 480 } |
481 // FIXME: Generate human-friendly reason message. | 481 // FIXME: Generate human-friendly reason message. |
482 failAsError("Failed to load Blob: error code = " + String::number(errorCode)
); | 482 failAsError("Failed to load Blob: error code = " + String::number(errorCode)
); |
483 // |this| can be deleted here. | 483 // |this| can be deleted here. |
484 } | 484 } |
485 | 485 |
486 } // namespace WebCore | 486 } // namespace WebCore |
OLD | NEW |