| 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_ROUTER_MOJO_IMPL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 void RegisterMediaRoutesObserver(MediaRoutesObserver* observer) override; | 81 void RegisterMediaRoutesObserver(MediaRoutesObserver* observer) override; |
| 82 void UnregisterMediaRoutesObserver(MediaRoutesObserver* observer) override; | 82 void UnregisterMediaRoutesObserver(MediaRoutesObserver* observer) override; |
| 83 void RegisterIssuesObserver(IssuesObserver* observer) override; | 83 void RegisterIssuesObserver(IssuesObserver* observer) override; |
| 84 void UnregisterIssuesObserver(IssuesObserver* observer) override; | 84 void UnregisterIssuesObserver(IssuesObserver* observer) override; |
| 85 | 85 |
| 86 void set_instance_id_for_test(const std::string& instance_id) { | 86 void set_instance_id_for_test(const std::string& instance_id) { |
| 87 instance_id_ = instance_id; | 87 instance_id_ = instance_id; |
| 88 } | 88 } |
| 89 | 89 |
| 90 private: | 90 private: |
| 91 friend class MediaRouterMojoImplFactory; | 91 friend class MediaRouterFactory; |
| 92 friend class MediaRouterMojoTest; | 92 friend class MediaRouterMojoTest; |
| 93 | 93 |
| 94 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoExtensionTest, | 94 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoExtensionTest, |
| 95 DeferredBindingAndSuspension); | 95 DeferredBindingAndSuspension); |
| 96 | 96 |
| 97 // Standard constructor, used by | 97 // Standard constructor, used by |
| 98 // MediaRouterMojoImplFactory::GetApiForBrowserContext. | 98 // MediaRouterMojoImplFactory::GetApiForBrowserContext. |
| 99 explicit MediaRouterMojoImpl( | 99 explicit MediaRouterMojoImpl( |
| 100 extensions::EventPageTracker* event_page_tracker); | 100 extensions::EventPageTracker* event_page_tracker); |
| 101 | 101 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 std::string instance_id_; | 197 std::string instance_id_; |
| 198 | 198 |
| 199 base::ThreadChecker thread_checker_; | 199 base::ThreadChecker thread_checker_; |
| 200 | 200 |
| 201 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); | 201 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 } // namespace media_router | 204 } // namespace media_router |
| 205 | 205 |
| 206 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_ | 206 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_ |
| OLD | NEW |