OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ |
6 #define CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ | 6 #define CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/containers/scoped_ptr_hash_map.h" | 9 #include "base/containers/scoped_ptr_hash_map.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void OnSetCdm(RenderFrameHost* render_frame_host, int player_id, int cdm_id); | 51 void OnSetCdm(RenderFrameHost* render_frame_host, int player_id, int cdm_id); |
52 | 52 |
53 MediaPlayersObserver* GetMediaPlayersObserver() const; | 53 MediaPlayersObserver* GetMediaPlayersObserver() const; |
54 | 54 |
55 #if defined(VIDEO_HOLE) | 55 #if defined(VIDEO_HOLE) |
56 void OnFrameInfoUpdated(); | 56 void OnFrameInfoUpdated(); |
57 #endif // defined(VIDEO_HOLE) | 57 #endif // defined(VIDEO_HOLE) |
58 | 58 |
59 private: | 59 private: |
60 // Map from RenderFrameHost* to BrowserMediaPlayerManager. | 60 // Map from RenderFrameHost* to BrowserMediaPlayerManager. |
61 typedef base::ScopedPtrHashMap<uintptr_t, BrowserMediaPlayerManager> | 61 typedef base::ScopedPtrHashMap<uintptr_t, |
| 62 scoped_ptr<BrowserMediaPlayerManager>> |
62 MediaPlayerManagerMap; | 63 MediaPlayerManagerMap; |
63 MediaPlayerManagerMap media_player_managers_; | 64 MediaPlayerManagerMap media_player_managers_; |
64 #endif // defined(OS_ANDROID) | 65 #endif // defined(OS_ANDROID) |
65 | 66 |
66 private: | 67 private: |
67 DISALLOW_COPY_AND_ASSIGN(MediaWebContentsObserver); | 68 DISALLOW_COPY_AND_ASSIGN(MediaWebContentsObserver); |
68 }; | 69 }; |
69 | 70 |
70 } // namespace content | 71 } // namespace content |
71 | 72 |
72 #endif // CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ | 73 #endif // CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |