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

Unified Diff: Source/core/loader/TextTrackLoader.h

Issue 50123006: Let TextTrackResource be a RawResource (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/fetch/TextTrackResource.cpp ('k') | Source/core/loader/TextTrackLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/TextTrackLoader.h
diff --git a/Source/core/loader/TextTrackLoader.h b/Source/core/loader/TextTrackLoader.h
index 59b7664c7d28326e358bdaba30e977dfd9ed274c..4ca0543e557da6a6e90b2d34adac518dccc6b4fa 100644
--- a/Source/core/loader/TextTrackLoader.h
+++ b/Source/core/loader/TextTrackLoader.h
@@ -26,7 +26,7 @@
#ifndef TextTrackLoader_h
#define TextTrackLoader_h
-#include "core/fetch/ResourceClient.h"
+#include "core/fetch/RawResource.h"
#include "core/fetch/ResourcePtr.h"
#include "core/fetch/TextTrackResource.h"
#include "core/html/track/WebVTTParser.h"
@@ -49,7 +49,7 @@ public:
virtual void newRegionsAvailable(TextTrackLoader*) = 0;
};
-class TextTrackLoader : public ResourceClient, private WebVTTParserClient {
+class TextTrackLoader : public RawResourceClient, private WebVTTParserClient {
WTF_MAKE_NONCOPYABLE(TextTrackLoader);
WTF_MAKE_FAST_ALLOCATED;
public:
@@ -69,14 +69,14 @@ public:
void getNewRegions(Vector<RefPtr<TextTrackRegion> >& outputRegions);
private:
- // ResourceClient
- virtual void notifyFinished(Resource*);
- virtual void deprecatedDidReceiveResource(Resource*);
+ // RawResourceClient
+ virtual void dataReceived(Resource*, const char* data, int length) OVERRIDE;
+ virtual void notifyFinished(Resource*) OVERRIDE;
// WebVTTParserClient
- virtual void newCuesParsed();
- virtual void newRegionsParsed();
- virtual void fileFailedToParse();
+ virtual void newCuesParsed() OVERRIDE;
+ virtual void newRegionsParsed() OVERRIDE;
+ virtual void fileFailedToParse() OVERRIDE;
TextTrackLoader(TextTrackLoaderClient*, Document&);
« no previous file with comments | « Source/core/fetch/TextTrackResource.cpp ('k') | Source/core/loader/TextTrackLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698