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

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

Issue 1853743005: Oilpan: Remove WillBe types (part 13) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 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 30 matching lines...) Expand all
41 41
42 class TextTrackLoaderClient { 42 class TextTrackLoaderClient {
43 public: 43 public:
44 virtual ~TextTrackLoaderClient() {} 44 virtual ~TextTrackLoaderClient() {}
45 45
46 virtual void newCuesAvailable(TextTrackLoader*) = 0; 46 virtual void newCuesAvailable(TextTrackLoader*) = 0;
47 virtual void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) = 0; 47 virtual void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) = 0;
48 virtual void newRegionsAvailable(TextTrackLoader*) = 0; 48 virtual void newRegionsAvailable(TextTrackLoader*) = 0;
49 }; 49 };
50 50
51 class TextTrackLoader final : public NoBaseWillBeGarbageCollectedFinalized<TextT rackLoader>, public ResourceOwner<RawResource>, private VTTParserClient { 51 class TextTrackLoader final : public GarbageCollectedFinalized<TextTrackLoader>, public ResourceOwner<RawResource>, private VTTParserClient {
52 USING_FAST_MALLOC_WILL_BE_REMOVED(TextTrackLoader); 52 USING_GARBAGE_COLLECTED_MIXIN(TextTrackLoader);
53 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(TextTrackLoader);
54 public: 53 public:
55 static PassOwnPtrWillBeRawPtr<TextTrackLoader> create(TextTrackLoaderClient& client, Document& document) 54 static RawPtr<TextTrackLoader> create(TextTrackLoaderClient& client, Documen t& document)
56 { 55 {
57 return adoptPtrWillBeNoop(new TextTrackLoader(client, document)); 56 return new TextTrackLoader(client, document);
58 } 57 }
59 ~TextTrackLoader() override; 58 ~TextTrackLoader() override;
60 59
61 bool load(const KURL&, CrossOriginAttributeValue); 60 bool load(const KURL&, CrossOriginAttributeValue);
62 void cancelLoad(); 61 void cancelLoad();
63 62
64 enum State { Idle, Loading, Finished, Failed }; 63 enum State { Idle, Loading, Finished, Failed };
65 State loadState() { return m_state; } 64 State loadState() { return m_state; }
66 65
67 void getNewCues(HeapVector<Member<TextTrackCue>>& outputCues); 66 void getNewCues(HeapVector<Member<TextTrackCue>>& outputCues);
(...skipping 13 matching lines...) Expand all
81 void fileFailedToParse() override; 80 void fileFailedToParse() override;
82 81
83 TextTrackLoader(TextTrackLoaderClient&, Document&); 82 TextTrackLoader(TextTrackLoaderClient&, Document&);
84 83
85 void cueLoadTimerFired(Timer<TextTrackLoader>*); 84 void cueLoadTimerFired(Timer<TextTrackLoader>*);
86 void corsPolicyPreventedLoad(SecurityOrigin*, const KURL&); 85 void corsPolicyPreventedLoad(SecurityOrigin*, const KURL&);
87 86
88 Document& document() const { return *m_document; } 87 Document& document() const { return *m_document; }
89 88
90 TextTrackLoaderClient& m_client; 89 TextTrackLoaderClient& m_client;
91 PersistentWillBeMember<VTTParser> m_cueParser; 90 Member<VTTParser> m_cueParser;
92 // FIXME: Remove this pointer and get the Document from m_client. 91 // FIXME: Remove this pointer and get the Document from m_client.
93 RawPtrWillBeMember<Document> m_document; 92 Member<Document> m_document;
94 Timer<TextTrackLoader> m_cueLoadTimer; 93 Timer<TextTrackLoader> m_cueLoadTimer;
95 State m_state; 94 State m_state;
96 bool m_newCuesAvailable; 95 bool m_newCuesAvailable;
97 }; 96 };
98 97
99 } // namespace blink 98 } // namespace blink
100 99
101 #endif 100 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698