Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: Source/core/fetch/TextTrackResource.cpp

Issue 50123006: Let TextTrackResource be a RawResource (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/fetch/TextTrackResource.h ('k') | Source/core/loader/TextTrackLoader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/fetch/TextTrackResource.h ('k') | Source/core/loader/TextTrackLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698