| 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 CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_ |
| 6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_ | 6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "base/containers/scoped_ptr_hash_map.h" | 11 #include "base/containers/scoped_ptr_hash_map.h" |
| 12 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 13 #include "chrome/browser/status_icons/status_icon_menu_model.h" | 14 #include "chrome/browser/status_icons/status_icon_menu_model.h" |
| 14 #include "content/public/common/media_stream_request.h" | 15 #include "content/public/common/media_stream_request.h" |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 class WebContents; | 18 class WebContents; |
| 18 } // namespace content | 19 } // namespace content |
| 19 | 20 |
| 20 namespace gfx { | 21 namespace gfx { |
| 21 class ImageSkia; | 22 class ImageSkia; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // A vector which maps command IDs to their associated WebContents | 100 // A vector which maps command IDs to their associated WebContents |
| 100 // instance. This is rebuilt each time the status tray icon context menu is | 101 // instance. This is rebuilt each time the status tray icon context menu is |
| 101 // updated. | 102 // updated. |
| 102 typedef std::vector<content::WebContents*> CommandTargets; | 103 typedef std::vector<content::WebContents*> CommandTargets; |
| 103 CommandTargets command_targets_; | 104 CommandTargets command_targets_; |
| 104 | 105 |
| 105 DISALLOW_COPY_AND_ASSIGN(MediaStreamCaptureIndicator); | 106 DISALLOW_COPY_AND_ASSIGN(MediaStreamCaptureIndicator); |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_ | 109 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_ |
| OLD | NEW |