OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/browser/time_zone_monitor.h" | 5 #include "content/browser/time_zone_monitor.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/files/file_path_watcher.h" | 14 #include "base/files/file_path_watcher.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 | 18 |
19 #if !defined(OS_CHROMEOS) | 19 #if !defined(OS_CHROMEOS) |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 namespace { | 23 namespace { |
24 class TimeZoneMonitorLinuxImpl; | 24 class TimeZoneMonitorLinuxImpl; |
25 } // namespace | 25 } // namespace |
26 | 26 |
27 class TimeZoneMonitorLinux : public TimeZoneMonitor { | 27 class TimeZoneMonitorLinux : public TimeZoneMonitor { |
28 public: | 28 public: |
29 TimeZoneMonitorLinux(); | 29 TimeZoneMonitorLinux(); |
30 virtual ~TimeZoneMonitorLinux(); | 30 ~TimeZoneMonitorLinux() override; |
31 | 31 |
32 void NotifyRenderersFromImpl() { | 32 void NotifyRenderersFromImpl() { |
33 NotifyRenderers(); | 33 NotifyRenderers(); |
34 } | 34 } |
35 | 35 |
36 private: | 36 private: |
37 scoped_refptr<TimeZoneMonitorLinuxImpl> impl_; | 37 scoped_refptr<TimeZoneMonitorLinuxImpl> impl_; |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(TimeZoneMonitorLinux); | 39 DISALLOW_COPY_AND_ASSIGN(TimeZoneMonitorLinux); |
40 }; | 40 }; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 } | 157 } |
158 | 158 |
159 // static | 159 // static |
160 scoped_ptr<TimeZoneMonitor> TimeZoneMonitor::Create() { | 160 scoped_ptr<TimeZoneMonitor> TimeZoneMonitor::Create() { |
161 return scoped_ptr<TimeZoneMonitor>(new TimeZoneMonitorLinux()); | 161 return scoped_ptr<TimeZoneMonitor>(new TimeZoneMonitorLinux()); |
162 } | 162 } |
163 | 163 |
164 } // namespace content | 164 } // namespace content |
165 | 165 |
166 #endif // !OS_CHROMEOS | 166 #endif // !OS_CHROMEOS |
OLD | NEW |