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

Side by Side Diff: content/browser/renderer_host/media/media_stream_provider.h

Issue 11339014: Move content\browser\renderer_host\media to content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // MediaStreamProvider is used to capture media of the types defined in 5 // MediaStreamProvider is used to capture media of the types defined in
6 // MediaStreamType. There is only one MediaStreamProvider instance per media 6 // MediaStreamType. There is only one MediaStreamProvider instance per media
7 // type and a MediaStreamProvider instance can have only one registered 7 // type and a MediaStreamProvider instance can have only one registered
8 // listener. 8 // listener.
9 // The MediaStreamManager is expected to be called on Browser::IO thread and 9 // The MediaStreamManager is expected to be called on Browser::IO thread and
10 // the listener will be called on the same thread. 10 // the listener will be called on the same thread.
11 11
12 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_PROVIDER_H_ 12 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_PROVIDER_H_
13 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_PROVIDER_H_ 13 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_PROVIDER_H_
14 14
15 #include <list> 15 #include <list>
16 #include <string> 16 #include <string>
17 17
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
20 #include "content/common/media/media_stream_options.h" 20 #include "content/common/media/media_stream_options.h"
21 21
22 namespace base { 22 namespace base {
23 class MessageLoopProxy; 23 class MessageLoopProxy;
24 } 24 }
25 25
26 namespace media_stream { 26 namespace content {
27 27
28 enum MediaStreamProviderError { 28 enum MediaStreamProviderError {
29 kMediaStreamOk = 0, 29 kMediaStreamOk = 0,
30 kInvalidMediaStreamType, 30 kInvalidMediaStreamType,
31 kInvalidSession, 31 kInvalidSession,
32 kUnknownSession, 32 kUnknownSession,
33 kDeviceNotAvailable, 33 kDeviceNotAvailable,
34 kDeviceAlreadyInUse, 34 kDeviceAlreadyInUse,
35 kUnknownError 35 kUnknownError
36 }; 36 };
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual int Open(const StreamDeviceInfo& device) = 0; 82 virtual int Open(const StreamDeviceInfo& device) = 0;
83 83
84 // Closes the specified device and calls |Closed| when done. 84 // Closes the specified device and calls |Closed| when done.
85 virtual void Close(int capture_session_id) = 0; 85 virtual void Close(int capture_session_id) = 0;
86 86
87 protected: 87 protected:
88 friend class base::RefCountedThreadSafe<MediaStreamProvider>; 88 friend class base::RefCountedThreadSafe<MediaStreamProvider>;
89 virtual ~MediaStreamProvider() {} 89 virtual ~MediaStreamProvider() {}
90 }; 90 };
91 91
92 } // namespace media_stream 92 } // namespace content
93 93
94 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_PROVIDER_H_ 94 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698