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

Unified Diff: webkit/glue/media/buffered_data_source.h

Issue 8080005: Merge 103008 - Cleaned up threadiness of BufferedDataSource. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/874/src/
Patch Set: Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/glue/media/buffered_data_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/media/buffered_data_source.h
===================================================================
--- webkit/glue/media/buffered_data_source.h (revision 103382)
+++ webkit/glue/media/buffered_data_source.h (working copy)
@@ -20,6 +20,8 @@
namespace webkit_glue {
+// This class may be created on any thread, and is callable from the render
+// thread as well as media-specific threads.
class BufferedDataSource : public WebDataSource {
public:
// Creates a DataSourceFactory for building BufferedDataSource objects.
@@ -125,7 +127,7 @@
// Callback method when a network event is received.
void NetworkEventCallback();
- void UpdateHostState();
+ void UpdateHostState_Locked();
// URL of the resource requested.
GURL url_;
@@ -178,7 +180,8 @@
// The message loop of the render thread.
MessageLoop* render_loop_;
- // Protects |stopped_|.
+ // Protects |stop_signal_received_|, |stopped_on_render_loop_| and
+ // |initialize_cb_|.
base::Lock lock_;
// Stop signal to suppressing activities. This variable is set on the pipeline
« no previous file with comments | « no previous file | webkit/glue/media/buffered_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698