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

Unified Diff: content/renderer/media/active_loader.h

Issue 495353003: Move WebMediaPlayerImpl and its dependencies to media/blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Exclude media/blink from Android GN builds for now like cc/blink does. Created 6 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
Index: content/renderer/media/active_loader.h
diff --git a/content/renderer/media/active_loader.h b/content/renderer/media/active_loader.h
deleted file mode 100644
index 1c30214b92cfa60fbab3479fecd6bb40a5ae97bf..0000000000000000000000000000000000000000
--- a/content/renderer/media/active_loader.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_RENDERER_MEDIA_ACTIVE_LOADER_H_
-#define CONTENT_RENDERER_MEDIA_ACTIVE_LOADER_H_
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-
-namespace blink {
-class WebURLLoader;
-}
-
-namespace content {
-
-// Wraps an active WebURLLoader with some additional state.
-//
-// Handles deferring and deletion of loaders.
-class ActiveLoader {
- public:
- // Creates an ActiveLoader with the given loader. It is assumed that the
- // initial state of |loader| is loading and not deferred.
- explicit ActiveLoader(scoped_ptr<blink::WebURLLoader> loader);
- ~ActiveLoader();
-
- // Starts or stops deferring the resource load.
- void SetDeferred(bool deferred);
- bool deferred() { return deferred_; }
-
- private:
- friend class BufferedDataSourceTest;
-
- scoped_ptr<blink::WebURLLoader> loader_;
- bool deferred_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(ActiveLoader);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_MEDIA_ACTIVE_LOADER_H_

Powered by Google App Engine
This is Rietveld 408576698