OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BROWSER_BROWSER_IO_SURFACE_MANAGER_MAC_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_IO_SURFACE_MANAGER_MAC_H_ |
6 #define CONTENT_BROWSER_BROWSER_IO_SURFACE_MANAGER_MAC_H_ | 6 #define CONTENT_BROWSER_BROWSER_IO_SURFACE_MANAGER_MAC_H_ |
7 | 7 |
8 #include <mach/mach.h> | 8 #include <mach/mach.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/containers/scoped_ptr_hash_map.h" | 13 #include "base/containers/scoped_ptr_hash_map.h" |
14 #include "base/mac/dispatch_source_mach.h" | 14 #include "base/mac/dispatch_source_mach.h" |
15 #include "base/mac/scoped_mach_port.h" | 15 #include "base/mac/scoped_mach_port.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/singleton.h" | 18 #include "base/memory/singleton.h" |
19 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
| 20 #include "content/common/content_export.h" |
20 #include "content/common/mac/io_surface_manager.h" | 21 #include "content/common/mac/io_surface_manager.h" |
21 #include "content/common/mac/io_surface_manager_messages.h" | 22 #include "content/common/mac/io_surface_manager_messages.h" |
22 #include "content/common/mac/io_surface_manager_token.h" | 23 #include "content/common/mac/io_surface_manager_token.h" |
23 | 24 |
24 namespace content { | 25 namespace content { |
25 | 26 |
26 // Implementation of IOSurfaceManager that provides a mechanism for child | 27 // Implementation of IOSurfaceManager that provides a mechanism for child |
27 // processes to register and acquire IOSurfaces through a Mach service. | 28 // processes to register and acquire IOSurfaces through a Mach service. |
28 class CONTENT_EXPORT BrowserIOSurfaceManager : public IOSurfaceManager { | 29 class CONTENT_EXPORT BrowserIOSurfaceManager : public IOSurfaceManager { |
29 public: | 30 public: |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 107 |
107 // Mutex that guards |initialized_|, |io_surfaces_| and |child_process_ids_|. | 108 // Mutex that guards |initialized_|, |io_surfaces_| and |child_process_ids_|. |
108 mutable base::Lock lock_; | 109 mutable base::Lock lock_; |
109 | 110 |
110 DISALLOW_COPY_AND_ASSIGN(BrowserIOSurfaceManager); | 111 DISALLOW_COPY_AND_ASSIGN(BrowserIOSurfaceManager); |
111 }; | 112 }; |
112 | 113 |
113 } // namespace content | 114 } // namespace content |
114 | 115 |
115 #endif // CONTENT_BROWSER_BROWSER_IO_SURFACE_MANAGER_MAC_H_ | 116 #endif // CONTENT_BROWSER_BROWSER_IO_SURFACE_MANAGER_MAC_H_ |
OLD | NEW |