Chromium Code Reviews| 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 CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <ostream> | 10 #include <ostream> |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 // Used for logging. | 39 // Used for logging. |
| 40 std::string ToString() const; | 40 std::string ToString() const; |
| 41 | 41 |
| 42 // Hash operator for hash containers. | 42 // Hash operator for hash containers. |
| 43 struct Hash { | 43 struct Hash { |
| 44 size_t operator()(const MediaSource& source) const { | 44 size_t operator()(const MediaSource& source) const { |
| 45 return base::Hash(source.id()); | 45 return base::Hash(source.id()); |
| 46 } | 46 } |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 // Used by Mojo. | |
|
mark a. foltz
2017/02/07 20:02:48
Please declare with other ctors.
imcheng
2017/02/07 20:36:18
Done.
| |
| 50 MediaSource(); | |
| 51 | |
| 49 private: | 52 private: |
| 50 MediaSource::Id id_; | 53 MediaSource::Id id_; |
| 51 GURL url_; | 54 GURL url_; |
| 52 }; | 55 }; |
| 53 | 56 |
| 54 } // namespace media_router | 57 } // namespace media_router |
| 55 | 58 |
| 56 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_H_ | 59 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_H_ |
| OLD | NEW |