summaryrefslogtreecommitdiffstats
path: root/webkit/glue/media/buffered_data_source.h
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-27 20:55:29 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-27 20:55:29 +0000
commit96a1b138fefd2440b5b8cf9c39ae0c6cc1da4193 (patch)
tree18c63da3ada65e873018621eb74fe15c92d0379f /webkit/glue/media/buffered_data_source.h
parentf22f58df3f419245a852188d3b2be25abd9a515a (diff)
downloadchromium_src-96a1b138fefd2440b5b8cf9c39ae0c6cc1da4193.zip
chromium_src-96a1b138fefd2440b5b8cf9c39ae0c6cc1da4193.tar.gz
chromium_src-96a1b138fefd2440b5b8cf9c39ae0c6cc1da4193.tar.bz2
Cleaned up threadiness of BufferedDataSource.
BUG=96292 TEST=trybots Review URL: http://codereview.chromium.org/8046023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103008 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/media/buffered_data_source.h')
-rw-r--r--webkit/glue/media/buffered_data_source.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/webkit/glue/media/buffered_data_source.h b/webkit/glue/media/buffered_data_source.h
index 4dc3e96..fd20e64 100644
--- a/webkit/glue/media/buffered_data_source.h
+++ b/webkit/glue/media/buffered_data_source.h
@@ -20,6 +20,8 @@ class MediaLog;
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.
@@ -129,7 +131,7 @@ class BufferedDataSource : public WebDataSource {
// Callback method when a network event is received.
void NetworkEventCallback();
- void UpdateHostState();
+ void UpdateHostState_Locked();
// URL of the resource requested.
GURL url_;
@@ -182,7 +184,8 @@ class BufferedDataSource : public WebDataSource {
// 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