OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/extensions/system_info_watcher.h" |
| 6 |
| 7 namespace extensions { |
| 8 |
| 9 // TODO(Hongbo): Add SystemInfoWatcher implementation on Mac platform. |
| 10 class SystemInfoWatcherMac : public SystemInfoWatcher { |
| 11 public: |
| 12 SystemInfoWatcherMac(); |
| 13 virtual ~SystemInfoWatcherMac(); |
| 14 |
| 15 private: |
| 16 virtual bool PlatformStartWatching(const std::string& event_name) OVERRIDE; |
| 17 virtual bool PlatformStopWatching(const std::string& event_name) OVERRIDE; |
| 18 }; |
| 19 |
| 20 // |
| 21 // SystemInfoWatcherMac implementation. |
| 22 // |
| 23 |
| 24 SystemInfoWatcherMac::SystemInfoWatcherMac() { |
| 25 } |
| 26 |
| 27 SystemInfoWatcherMac::~SystemInfoWatcherMac() { |
| 28 } |
| 29 |
| 30 bool SystemInfoWatcherMac::PlatformStartWatching( |
| 31 const std::string& event_name) { |
| 32 return false; |
| 33 } |
| 34 |
| 35 bool SystemInfoWatcherMac::PlatformStopWatching( |
| 36 const std::string& event_name) { |
| 37 return false; |
| 38 } |
| 39 |
| 40 // static |
| 41 SystemInfoWatcher* SystemInfoWatcher::Get() { |
| 42 return SystemInfoWatcher::GetInstance<SystemInfoWatcherMac>(); |
| 43 } |
| 44 |
| 45 } // namespace extensions |
OLD | NEW |