Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: chrome/browser/extensions/system_info_watcher_mac.cc

Issue 10836341: Add the basic code skeleton for system info event router (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add mock implementation for onAdded and onRemoved events Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698