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

Side by Side Diff: content/renderer/media/buffered_data_source.h

Issue 22914021: Logged information from BufferedDataSource including (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added comments Created 7 years, 4 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_BUFFERED_DATA_SOURCE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_BUFFERED_DATA_SOURCE_H_
6 #define CONTENT_RENDERER_MEDIA_BUFFERED_DATA_SOURCE_H_ 6 #define CONTENT_RENDERER_MEDIA_BUFFERED_DATA_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Initialize this object using |url| and |cors_mode|, executing |init_cb| 47 // Initialize this object using |url| and |cors_mode|, executing |init_cb|
48 // with the result of initialization when it has completed. 48 // with the result of initialization when it has completed.
49 // 49 //
50 // Method called on the render thread. 50 // Method called on the render thread.
51 typedef base::Callback<void(bool)> InitializeCB; 51 typedef base::Callback<void(bool)> InitializeCB;
52 void Initialize( 52 void Initialize(
53 const GURL& url, 53 const GURL& url,
54 BufferedResourceLoader::CORSMode cors_mode, 54 BufferedResourceLoader::CORSMode cors_mode,
55 const InitializeCB& init_cb); 55 const InitializeCB& init_cb);
56 56
57 // Wrap an existing InitializeCB and return a new InitializeCB that calls
58 // the original but also logs information about the BufferedDataSource
59 // post initialization.
60 InitializeCB CreateInitializeCB(
61 const scoped_refptr<media::MediaLog>& media_log,
62 const InitializeCB& init_cb);
63
57 // Adjusts the buffering algorithm based on the given preload value. 64 // Adjusts the buffering algorithm based on the given preload value.
58 void SetPreload(Preload preload); 65 void SetPreload(Preload preload);
59 66
60 // Returns true if the media resource has a single origin, false otherwise. 67 // Returns true if the media resource has a single origin, false otherwise.
61 // Only valid to call after Initialize() has completed. 68 // Only valid to call after Initialize() has completed.
62 // 69 //
63 // Method called on the render thread. 70 // Method called on the render thread.
64 bool HasSingleOrigin(); 71 bool HasSingleOrigin();
65 72
66 // Returns true if the media resource passed a CORS access control check. 73 // Returns true if the media resource passed a CORS access control check.
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 scoped_refptr<media::MediaLog> media_log_; 219 scoped_refptr<media::MediaLog> media_log_;
213 220
214 DownloadingCB downloading_cb_; 221 DownloadingCB downloading_cb_;
215 222
216 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); 223 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource);
217 }; 224 };
218 225
219 } // namespace content 226 } // namespace content
220 227
221 #endif // CONTENT_RENDERER_MEDIA_BUFFERED_DATA_SOURCE_H_ 228 #endif // CONTENT_RENDERER_MEDIA_BUFFERED_DATA_SOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/buffered_data_source.cc » ('j') | content/renderer/media/buffered_data_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698