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

Side by Side Diff: third_party/WebKit/Source/core/loader/TextTrackLoader.h

Issue 1413233005: tracing: Report ResourceClients and the reason for not deletable for web-caches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reflected haraken's comments. Created 5 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 void getNewCues(HeapVector<Member<TextTrackCue>>& outputCues); 66 void getNewCues(HeapVector<Member<TextTrackCue>>& outputCues);
67 void getNewRegions(HeapVector<Member<VTTRegion>>& outputRegions); 67 void getNewRegions(HeapVector<Member<VTTRegion>>& outputRegions);
68 68
69 DECLARE_TRACE(); 69 DECLARE_TRACE();
70 70
71 private: 71 private:
72 // RawResourceClient 72 // RawResourceClient
73 void dataReceived(Resource*, const char* data, unsigned length) override; 73 void dataReceived(Resource*, const char* data, unsigned length) override;
74 void notifyFinished(Resource*) override; 74 void notifyFinished(Resource*) override;
75 String debugName() const override { return "TextTrackLoader"; }
75 76
76 // VTTParserClient 77 // VTTParserClient
77 void newCuesParsed() override; 78 void newCuesParsed() override;
78 void newRegionsParsed() override; 79 void newRegionsParsed() override;
79 void fileFailedToParse() override; 80 void fileFailedToParse() override;
80 81
81 TextTrackLoader(TextTrackLoaderClient&, Document&); 82 TextTrackLoader(TextTrackLoaderClient&, Document&);
82 83
83 void cueLoadTimerFired(Timer<TextTrackLoader>*); 84 void cueLoadTimerFired(Timer<TextTrackLoader>*);
84 void corsPolicyPreventedLoad(SecurityOrigin*, const KURL&); 85 void corsPolicyPreventedLoad(SecurityOrigin*, const KURL&);
85 86
86 Document& document() const { return *m_document; } 87 Document& document() const { return *m_document; }
87 88
88 TextTrackLoaderClient& m_client; 89 TextTrackLoaderClient& m_client;
89 PersistentWillBeMember<VTTParser> m_cueParser; 90 PersistentWillBeMember<VTTParser> m_cueParser;
90 // FIXME: Remove this pointer and get the Document from m_client. 91 // FIXME: Remove this pointer and get the Document from m_client.
91 RawPtrWillBeMember<Document> m_document; 92 RawPtrWillBeMember<Document> m_document;
92 Timer<TextTrackLoader> m_cueLoadTimer; 93 Timer<TextTrackLoader> m_cueLoadTimer;
93 State m_state; 94 State m_state;
94 bool m_newCuesAvailable; 95 bool m_newCuesAvailable;
95 }; 96 };
96 97
97 } // namespace blink 98 } // namespace blink
98 99
99 #endif 100 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/SinkDocument.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerFilterInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698