Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: chrome/browser/media/router/media_source.h

Issue 2666873006: [Media Router] Convert to use typemaps for media_router.mojom. (Closed)
Patch Set: compile fix Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698