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

Side by Side Diff: chrome/browser/extensions/system_info_watcher_win.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 Windows platform.
10 class SystemInfoWatcherWin : public SystemInfoWatcher {
11 public:
12 SystemInfoWatcherWin();
13 virtual ~SystemInfoWatcherWin();
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 // SystemInfoWatcherWin implementation.
22 //
23
24 SystemInfoWatcherWin::SystemInfoWatcherWin() {
25 }
26
27 SystemInfoWatcherWin::~SystemInfoWatcherWin() {
28 }
29
30 bool SystemInfoWatcherWin::PlatformStartWatching(
31 const std::string& event_name) {
32 return false;
33 }
34
35 bool SystemInfoWatcherWin::PlatformStopWatching(
36 const std::string& event_name) {
37 return false;
38 }
39
40 // static
41 SystemInfoWatcher* SystemInfoWatcher::Get() {
42 return SystemInfoWatcher::GetInstance<SystemInfoWatcherWin>();
43 }
44
45 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698