| 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 <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/bind.h" | 9 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "ui/gfx/win/singleton_hwnd_observer.h" | 13 #include "ui/gfx/win/singleton_hwnd_observer.h" |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 class TimeZoneMonitorWin : public TimeZoneMonitor { | 17 class TimeZoneMonitorWin : public TimeZoneMonitor { |
| 18 public: | 18 public: |
| 19 TimeZoneMonitorWin() | 19 TimeZoneMonitorWin() |
| 20 : TimeZoneMonitor(), | 20 : TimeZoneMonitor(), |
| 21 singleton_hwnd_observer_( | 21 singleton_hwnd_observer_( |
| (...skipping 15 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(TimeZoneMonitorWin); | 38 DISALLOW_COPY_AND_ASSIGN(TimeZoneMonitorWin); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 // static | 41 // static |
| 42 scoped_ptr<TimeZoneMonitor> TimeZoneMonitor::Create() { | 42 scoped_ptr<TimeZoneMonitor> TimeZoneMonitor::Create() { |
| 43 return scoped_ptr<TimeZoneMonitor>(new TimeZoneMonitorWin()); | 43 return scoped_ptr<TimeZoneMonitor>(new TimeZoneMonitorWin()); |
| 44 } | 44 } |
| 45 | 45 |
| 46 } // namespace content | 46 } // namespace content |
| OLD | NEW |