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 |