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

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

Powered by Google App Engine
This is Rietveld 408576698