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

Unified Diff: webkit/media/buffered_resource_loader.h

Issue 10694138: Collapse Should{Enable,Disable}Defer() into ShouldDefer() + simplify some other code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: rebase Created 8 years, 5 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/media/buffered_resource_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/buffered_resource_loader.h
diff --git a/webkit/media/buffered_resource_loader.h b/webkit/media/buffered_resource_loader.h
index b88b9e0cd4ca0fe860cc7e570df730e11b9f988f..f2a3093e0093e0d35ba740afabef9c81c67dcf7c 100644
--- a/webkit/media/buffered_resource_loader.h
+++ b/webkit/media/buffered_resource_loader.h
@@ -213,21 +213,17 @@ class BufferedResourceLoader : public WebKit::WebURLLoaderClient {
// Updates the |buffer_|'s forward and backward capacities.
void UpdateBufferWindow();
- // Returns true if we should defer resource loading based on the current
- // buffering scheme.
- bool ShouldEnableDefer() const;
-
- // Returns true if we should enable resource loading based on the current
- // buffering scheme.
- bool ShouldDisableDefer() const;
-
// Updates deferring behavior based on current buffering scheme.
void UpdateDeferBehavior();
- // Set defer state to |deferred| and cease/continue downloading data
- // accordingly.
+ // Sets |active_loader_|'s defer state and fires |loading_cb_| if the state
+ // changed.
void SetDeferred(bool deferred);
+ // Returns true if we should defer resource loading based on the current
+ // buffering scheme.
+ bool ShouldDefer() const;
+
// Returns true if the current read request can be fulfilled by what is in
// the buffer.
bool CanFulfillRead() const;
« no previous file with comments | « no previous file | webkit/media/buffered_resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698