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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLTrackElement.h

Issue 1471283006: TextTrackLoaderClient should not be a ResourceOwner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « no previous file | third_party/WebKit/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 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 InsertionNotificationRequest insertedInto(ContainerNode*) override; 66 InsertionNotificationRequest insertedInto(ContainerNode*) override;
67 67
68 void removedFrom(ContainerNode*) override; 68 void removedFrom(ContainerNode*) override;
69 bool isURLAttribute(const Attribute&) const override; 69 bool isURLAttribute(const Attribute&) const override;
70 70
71 // TextTrackLoaderClient 71 // TextTrackLoaderClient
72 void newCuesAvailable(TextTrackLoader*) override; 72 void newCuesAvailable(TextTrackLoader*) override;
73 void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) override; 73 void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) override;
74 void newRegionsAvailable(TextTrackLoader*) override; 74 void newRegionsAvailable(TextTrackLoader*) override;
75 String debugName() const override { return "HTMLTrackElement"; }
76 75
77 void setReadyState(ReadyState); 76 void setReadyState(ReadyState);
78 77
79 const AtomicString& mediaElementCrossOriginAttribute() const; 78 const AtomicString& mediaElementCrossOriginAttribute() const;
80 bool canLoadUrl(const KURL&); 79 bool canLoadUrl(const KURL&);
81 void loadTimerFired(Timer<HTMLTrackElement>*); 80 void loadTimerFired(Timer<HTMLTrackElement>*);
82 81
83 enum LoadStatus { 82 enum LoadStatus {
84 Failure, 83 Failure,
85 Success 84 Success
86 }; 85 };
87 void didCompleteLoad(LoadStatus); 86 void didCompleteLoad(LoadStatus);
88 87
89 HTMLMediaElement* mediaElement() const; 88 HTMLMediaElement* mediaElement() const;
90 89
91 LoadableTextTrack* ensureTrack(); 90 LoadableTextTrack* ensureTrack();
92 91
93 PersistentWillBeMember<LoadableTextTrack> m_track; 92 PersistentWillBeMember<LoadableTextTrack> m_track;
94 OwnPtrWillBeMember<TextTrackLoader> m_loader; 93 OwnPtrWillBeMember<TextTrackLoader> m_loader;
95 Timer<HTMLTrackElement> m_loadTimer; 94 Timer<HTMLTrackElement> m_loadTimer;
96 KURL m_url; 95 KURL m_url;
97 }; 96 };
98 97
99 } // namespace blink 98 } // namespace blink
100 99
101 #endif // HTMLTrackElement_h 100 #endif // HTMLTrackElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/TextTrackLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698