| OLD | NEW |
| 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 CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ |
| 6 #define CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ | 6 #define CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <tuple> | 11 #include <tuple> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/callback_forward.h" | 14 #include "base/callback_forward.h" |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/lazy_instance.h" | 16 #include "base/lazy_instance.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
| 19 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
| 20 #include "base/values.h" | 20 #include "base/values.h" |
| 21 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
| 22 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
| 23 #include "content/public/browser/notification_registrar.h" | 23 #include "content/public/browser/notification_registrar.h" |
| 24 #include "media/audio/audio_logging.h" | 24 #include "media/audio/audio_logging.h" |
| 25 #include "media/base/media_log.h" | 25 #include "media/base/media_log.h" |
| 26 #include "media/capture/video/video_capture_device_descriptor.h" | 26 #include "media/capture/video/video_capture_device_descriptor.h" |
| 27 #include "media/capture/video_capture_types.h" | 27 #include "media/capture/video_capture_types.h" |
| 28 | 28 |
| 29 namespace media { | 29 namespace media { |
| 30 class AudioParameters; | |
| 31 struct MediaLogEvent; | 30 struct MediaLogEvent; |
| 32 } | 31 } |
| 33 | 32 |
| 34 namespace content { | 33 namespace content { |
| 35 | 34 |
| 36 // This class stores information about currently active media. | 35 // This class stores information about currently active media. |
| 37 class CONTENT_EXPORT MediaInternals | 36 class CONTENT_EXPORT MediaInternals |
| 38 : NON_EXPORTED_BASE(public media::AudioLogFactory), | 37 : NON_EXPORTED_BASE(public media::AudioLogFactory), |
| 39 public NotificationObserver { | 38 public NotificationObserver { |
| 40 public: | 39 public: |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 base::DictionaryValue audio_streams_cached_data_; | 138 base::DictionaryValue audio_streams_cached_data_; |
| 140 int owner_ids_[AUDIO_COMPONENT_MAX]; | 139 int owner_ids_[AUDIO_COMPONENT_MAX]; |
| 141 std::unique_ptr<MediaInternalsUMAHandler> uma_handler_; | 140 std::unique_ptr<MediaInternalsUMAHandler> uma_handler_; |
| 142 | 141 |
| 143 DISALLOW_COPY_AND_ASSIGN(MediaInternals); | 142 DISALLOW_COPY_AND_ASSIGN(MediaInternals); |
| 144 }; | 143 }; |
| 145 | 144 |
| 146 } // namespace content | 145 } // namespace content |
| 147 | 146 |
| 148 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ | 147 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ |
| OLD | NEW |