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

Side by Side Diff: Source/core/html/track/LoadableTextTrack.cpp

Issue 53533003: Remove TextTrackLoaderClient::shouldLoadCues and ::cueLoadingStarted (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@fetchRawResourceNull
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/html/track/LoadableTextTrack.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 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 for (size_t i = 0; i < newCues.size(); ++i) { 106 for (size_t i = 0; i < newCues.size(); ++i) {
107 newCues[i]->setTrack(this); 107 newCues[i]->setTrack(this);
108 m_cues->add(newCues[i]); 108 m_cues->add(newCues[i]);
109 } 109 }
110 110
111 if (client()) 111 if (client())
112 client()->textTrackAddCues(this, m_cues.get()); 112 client()->textTrackAddCues(this, m_cues.get());
113 } 113 }
114 114
115 void LoadableTextTrack::cueLoadingStarted(TextTrackLoader* loader)
116 {
117 ASSERT_UNUSED(loader, m_loader == loader);
118 }
119
120 void LoadableTextTrack::cueLoadingCompleted(TextTrackLoader* loader, bool loadin gFailed) 115 void LoadableTextTrack::cueLoadingCompleted(TextTrackLoader* loader, bool loadin gFailed)
121 { 116 {
122 ASSERT_UNUSED(loader, m_loader == loader); 117 ASSERT_UNUSED(loader, m_loader == loader);
123 118
124 if (!m_trackElement) 119 if (!m_trackElement)
125 return; 120 return;
126 121
127 m_trackElement->didCompleteLoad(loadingFailed ? HTMLTrackElement::Failure : HTMLTrackElement::Success); 122 m_trackElement->didCompleteLoad(loadingFailed ? HTMLTrackElement::Failure : HTMLTrackElement::Success);
128 } 123 }
129 124
(...skipping 23 matching lines...) Expand all
153 return index; 148 return index;
154 ++index; 149 ++index;
155 } 150 }
156 ASSERT_NOT_REACHED(); 151 ASSERT_NOT_REACHED();
157 152
158 return 0; 153 return 0;
159 } 154 }
160 155
161 } // namespace WebCore 156 } // namespace WebCore
162 157
OLDNEW
« no previous file with comments | « Source/core/html/track/LoadableTextTrack.h ('k') | Source/core/loader/TextTrackLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698