| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 TimeZoneMonitorClient_h | 5 #ifndef TimeZoneMonitorClient_h |
| 6 #define TimeZoneMonitorClient_h | 6 #define TimeZoneMonitorClient_h |
| 7 | 7 |
| 8 #include "device/time_zone_monitor/public/interfaces/time_zone_monitor.mojom-bli
nk.h" | |
| 9 #include "mojo/public/cpp/bindings/binding.h" | 8 #include "mojo/public/cpp/bindings/binding.h" |
| 9 #include "services/device/public/interfaces/time_zone_monitor.mojom-blink.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class TimeZoneMonitorClient final | 13 class TimeZoneMonitorClient final |
| 14 : public device::mojom::blink::TimeZoneMonitorClient { | 14 : public device::mojom::blink::TimeZoneMonitorClient { |
| 15 public: | 15 public: |
| 16 static void Init(); | 16 static void Init(); |
| 17 | 17 |
| 18 ~TimeZoneMonitorClient() override; | 18 ~TimeZoneMonitorClient() override; |
| 19 | 19 |
| 20 private: | 20 private: |
| 21 TimeZoneMonitorClient(); | 21 TimeZoneMonitorClient(); |
| 22 | 22 |
| 23 // device::mojom::blink::TimeZoneClient: | 23 // device::mojom::blink::TimeZoneClient: |
| 24 void OnTimeZoneChange(const String& timeZoneInfo) override; | 24 void OnTimeZoneChange(const String& timeZoneInfo) override; |
| 25 | 25 |
| 26 mojo::Binding<device::mojom::blink::TimeZoneMonitorClient> m_binding; | 26 mojo::Binding<device::mojom::blink::TimeZoneMonitorClient> m_binding; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace blink | 29 } // namespace blink |
| 30 | 30 |
| 31 #endif // TimeZoneMonitorClient_h | 31 #endif // TimeZoneMonitorClient_h |
| OLD | NEW |