OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "config.h" | 26 #include "config.h" |
27 | 27 |
28 #include "core/fetch/TextTrackResource.h" | 28 #include "core/fetch/TextTrackResource.h" |
29 | 29 |
30 #include "core/fetch/ResourceClient.h" | 30 #include "core/fetch/ResourceClient.h" |
31 #include "core/fetch/ResourceClientWalker.h" | 31 #include "core/fetch/ResourceClientWalker.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 TextTrackResource::TextTrackResource(const ResourceRequest& resourceRequest) | 35 TextTrackResource::TextTrackResource(const ResourceRequest& resourceRequest) |
36 : Resource(resourceRequest, TextTrack) | 36 : RawResource(resourceRequest, TextTrack) |
37 { | 37 { |
38 } | 38 } |
39 | 39 |
40 TextTrackResource::~TextTrackResource() | 40 TextTrackResource::~TextTrackResource() |
41 { | 41 { |
42 } | 42 } |
43 | 43 |
44 void TextTrackResource::appendData(const char* data, int length) | |
45 { | |
46 Resource::appendData(data, length); | |
47 ResourceClientWalker<ResourceClient> walker(m_clients); | |
48 while (ResourceClient *client = walker.next()) | |
49 client->deprecatedDidReceiveResource(this); | |
50 } | 44 } |
51 | |
52 } | |
53 | |
OLD | NEW |