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

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: remove ; 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') | webkit/media/buffered_resource_loader.cc » ('J')
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 925238c0721285de816b554968c8f621bca7e34f..36f04863562c0bfe0eddf914f3033b00718bbe2f 100644
--- a/webkit/media/buffered_resource_loader.h
+++ b/webkit/media/buffered_resource_loader.h
@@ -211,21 +211,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') | webkit/media/buffered_resource_loader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698