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

Side by Side Diff: media/blink/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: . 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 unified diff | Download patch
« no previous file with comments | « media/blink/DEPS ('k') | media/blink/active_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_ACTIVE_LOADER_H_ 5 #ifndef MEDIA_BLINK_ACTIVE_LOADER_H_
6 #define CONTENT_RENDERER_MEDIA_ACTIVE_LOADER_H_ 6 #define MEDIA_BLINK_ACTIVE_LOADER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "media/base/media_export.h"
10 11
11 namespace blink { 12 namespace blink {
12 class WebURLLoader; 13 class WebURLLoader;
13 } 14 }
14 15
15 namespace content { 16 namespace media {
16 17
17 // Wraps an active WebURLLoader with some additional state. 18 // Wraps an active WebURLLoader with some additional state.
18 // 19 //
19 // Handles deferring and deletion of loaders. 20 // Handles deferring and deletion of loaders.
20 class ActiveLoader { 21 class MEDIA_EXPORT ActiveLoader {
21 public: 22 public:
22 // Creates an ActiveLoader with the given loader. It is assumed that the 23 // Creates an ActiveLoader with the given loader. It is assumed that the
23 // initial state of |loader| is loading and not deferred. 24 // initial state of |loader| is loading and not deferred.
24 explicit ActiveLoader(scoped_ptr<blink::WebURLLoader> loader); 25 explicit ActiveLoader(scoped_ptr<blink::WebURLLoader> loader);
25 ~ActiveLoader(); 26 ~ActiveLoader();
26 27
27 // Starts or stops deferring the resource load. 28 // Starts or stops deferring the resource load.
28 void SetDeferred(bool deferred); 29 void SetDeferred(bool deferred);
29 bool deferred() { return deferred_; } 30 bool deferred() { return deferred_; }
30 31
31 private: 32 private:
32 friend class BufferedDataSourceTest; 33 friend class BufferedDataSourceTest;
33 34
34 scoped_ptr<blink::WebURLLoader> loader_; 35 scoped_ptr<blink::WebURLLoader> loader_;
35 bool deferred_; 36 bool deferred_;
36 37
37 DISALLOW_IMPLICIT_CONSTRUCTORS(ActiveLoader); 38 DISALLOW_IMPLICIT_CONSTRUCTORS(ActiveLoader);
38 }; 39 };
39 40
40 } // namespace content 41 } // namespace media
41 42
42 #endif // CONTENT_RENDERER_MEDIA_ACTIVE_LOADER_H_ 43 #endif // MEDIA_BLINK_ACTIVE_LOADER_H_
OLDNEW
« no previous file with comments | « media/blink/DEPS ('k') | media/blink/active_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698