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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 virtual ~BlobLoader() { } | 65 virtual ~BlobLoader() { } |
66 | 66 |
67 void cancel(); | 67 void cancel(); |
68 | 68 |
69 // FileReaderLoaderClient functions. | 69 // FileReaderLoaderClient functions. |
70 virtual void didStartLoading() OVERRIDE { } | 70 virtual void didStartLoading() OVERRIDE { } |
71 virtual void didReceiveData() OVERRIDE { } | 71 virtual void didReceiveData() OVERRIDE { } |
72 virtual void didFinishLoading() OVERRIDE; | 72 virtual void didFinishLoading() OVERRIDE; |
73 virtual void didFail(FileError::ErrorCode) OVERRIDE; | 73 virtual void didFail(FileError::ErrorCode) OVERRIDE; |
74 | 74 |
75 void trace(Visitor* visitor) | 75 virtual void trace(Visitor* visitor) |
76 { | 76 { |
77 visitor->trace(m_channel); | 77 visitor->trace(m_channel); |
78 } | 78 } |
79 | 79 |
80 private: | 80 private: |
81 Member<NewWebSocketChannelImpl> m_channel; | 81 Member<NewWebSocketChannelImpl> m_channel; |
82 FileReaderLoader m_loader; | 82 FileReaderLoader m_loader; |
83 }; | 83 }; |
84 | 84 |
85 NewWebSocketChannelImpl::BlobLoader::BlobLoader(PassRefPtr<BlobDataHandle> blobD
ataHandle, NewWebSocketChannelImpl* channel) | 85 NewWebSocketChannelImpl::BlobLoader::BlobLoader(PassRefPtr<BlobDataHandle> blobD
ataHandle, NewWebSocketChannelImpl* channel) |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 } | 557 } |
558 | 558 |
559 void NewWebSocketChannelImpl::trace(Visitor* visitor) | 559 void NewWebSocketChannelImpl::trace(Visitor* visitor) |
560 { | 560 { |
561 visitor->trace(m_blobLoader); | 561 visitor->trace(m_blobLoader); |
562 visitor->trace(m_client); | 562 visitor->trace(m_client); |
563 WebSocketChannel::trace(visitor); | 563 WebSocketChannel::trace(visitor); |
564 } | 564 } |
565 | 565 |
566 } // namespace blink | 566 } // namespace blink |
OLD | NEW |