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_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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 void DetachRoute(const MediaRoute::Id& route_id) override; | 91 void DetachRoute(const MediaRoute::Id& route_id) override; |
| 92 void SendRouteMessage(const MediaRoute::Id& route_id, | 92 void SendRouteMessage(const MediaRoute::Id& route_id, |
| 93 const std::string& message, | 93 const std::string& message, |
| 94 const SendRouteMessageCallback& callback) override; | 94 const SendRouteMessageCallback& callback) override; |
| 95 void SendRouteBinaryMessage( | 95 void SendRouteBinaryMessage( |
| 96 const MediaRoute::Id& route_id, | 96 const MediaRoute::Id& route_id, |
| 97 scoped_ptr<std::vector<uint8_t>> data, | 97 scoped_ptr<std::vector<uint8_t>> data, |
| 98 const SendRouteMessageCallback& callback) override; | 98 const SendRouteMessageCallback& callback) override; |
| 99 void AddIssue(const Issue& issue) override; | 99 void AddIssue(const Issue& issue) override; |
| 100 void ClearIssue(const Issue::Id& issue_id) override; | 100 void ClearIssue(const Issue::Id& issue_id) override; |
| 101 | 101 |
|
apacible
2016/03/23 22:04:45
nit: same comment on removing newlines.
btolsch
2016/03/24 01:44:03
Done.
| |
| 102 bool is_mdns_discovery_enabled() const override; | |
| 103 | |
| 104 void EnableMdnsDiscovery() override; | |
| 105 | |
| 102 const std::string& media_route_provider_extension_id() const { | 106 const std::string& media_route_provider_extension_id() const { |
| 103 return media_route_provider_extension_id_; | 107 return media_route_provider_extension_id_; |
| 104 } | 108 } |
| 105 | 109 |
| 106 void set_instance_id_for_test(const std::string& instance_id) { | 110 void set_instance_id_for_test(const std::string& instance_id) { |
| 107 instance_id_ = instance_id; | 111 instance_id_ = instance_id; |
| 108 } | 112 } |
| 109 | 113 |
| 110 private: | 114 private: |
| 111 friend class MediaRouterFactory; | 115 friend class MediaRouterFactory; |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 374 int wakeup_attempt_count_ = 0; | 378 int wakeup_attempt_count_ = 0; |
| 375 | 379 |
| 376 // Records the current reason the extension is being woken up. Is set to | 380 // Records the current reason the extension is being woken up. Is set to |
| 377 // MediaRouteProviderWakeReason::TOTAL_COUNT if there is no pending reason. | 381 // MediaRouteProviderWakeReason::TOTAL_COUNT if there is no pending reason. |
| 378 MediaRouteProviderWakeReason current_wake_reason_; | 382 MediaRouteProviderWakeReason current_wake_reason_; |
| 379 | 383 |
| 380 // A flag to ensure that we record the provider version once, during the | 384 // A flag to ensure that we record the provider version once, during the |
| 381 // initial event page wakeup attempt. | 385 // initial event page wakeup attempt. |
| 382 bool provider_version_was_recorded_ = false; | 386 bool provider_version_was_recorded_ = false; |
| 383 | 387 |
| 388 bool is_mdns_discovery_enabled_ = false; | |
|
imcheng
2016/03/24 01:17:19
This should be true for non-Windows.
btolsch
2016/03/24 01:44:03
Done.
| |
| 389 | |
| 384 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; | 390 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; |
| 385 | 391 |
| 386 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); | 392 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); |
| 387 }; | 393 }; |
| 388 | 394 |
| 389 } // namespace media_router | 395 } // namespace media_router |
| 390 | 396 |
| 391 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_ | 397 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_ |
| OLD | NEW |