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

Side by Side Diff: media/video/capture/screen/shared_buffer_factory.h

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | 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 #ifndef REMOTING_CAPTURER_SHARED_BUFFER_FACTORY_H_ 5 #ifndef MEDIA_VIDEO_CAPTURE_SCREEN_SHARED_BUFFER_FACTORY_H_
6 #define REMOTING_CAPTURER_SHARED_BUFFER_FACTORY_H_ 6 #define MEDIA_VIDEO_CAPTURE_SCREEN_SHARED_BUFFER_FACTORY_H_
7 7
8 namespace remoting { 8 namespace media {
9 9
10 class SharedBuffer; 10 class SharedBuffer;
11 11
12 // Provides a way to create shared buffers accessible by two or more processes. 12 // Provides a way to create shared buffers accessible by two or more processes.
13 class SharedBufferFactory { 13 class SharedBufferFactory {
14 public: 14 public:
15 // Creates a shared memory buffer of the given size. 15 // Creates a shared memory buffer of the given size.
16 virtual scoped_refptr<SharedBuffer> CreateSharedBuffer(uint32 size) = 0; 16 virtual scoped_refptr<SharedBuffer> CreateSharedBuffer(uint32 size) = 0;
17 17
18 // Notifies the factory that the buffer is no longer used by the caller and 18 // Notifies the factory that the buffer is no longer used by the caller and
19 // can be released. The caller still has to drop all references to free 19 // can be released. The caller still has to drop all references to free
20 // the memory. 20 // the memory.
21 virtual void ReleaseSharedBuffer(scoped_refptr<SharedBuffer> buffer) = 0; 21 virtual void ReleaseSharedBuffer(scoped_refptr<SharedBuffer> buffer) = 0;
22 22
23 protected: 23 protected:
24 virtual ~SharedBufferFactory() {} 24 virtual ~SharedBufferFactory() {}
25 }; 25 };
26 26
27 } // namespace remoting 27 } // namespace media
28 28
29 #endif // REMOTING_CAPTURER_SHARED_BUFFER_FACTORY_H_ 29 #endif // MEDIA_VIDEO_CAPTURE_SCREEN_SHARED_BUFFER_FACTORY_H_
OLDNEW
« no previous file with comments | « media/video/capture/screen/shared_buffer.cc ('k') | media/video/capture/screen/shared_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698