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

Side by Side Diff: chrome_frame/registry_watcher.h

Issue 7065024: Add a self-destruct mechanism to user-level Chrome Frame when it detects that system-level Chrome... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 // A utility class that makes it easy to register for registry change
6 // notifications.
7 //
8
9 #ifndef CHROME_FRAME_REGISTRY_WATCHER_H_
10 #define CHROME_FRAME_REGISTRY_WATCHER_H_
11
12 #include <windows.h>
13
14 class RegistryWatcher {
15 public:
16 RegistryWatcher(HKEY hive, const wchar_t* path, WAITORTIMERCALLBACK callback);
grt (UTC plus 2) 2011/05/26 17:08:58 Change this so that users of this class don't need
robertshield 2011/05/27 03:34:59 Done.
17 ~RegistryWatcher();
18
19 bool StartWatching();
20 void StopWatching();
21
22 bool stopping() { return stopping_; }
23
24 private:
25 HKEY registry_key_;
26
27 HANDLE wait_event_;
28 HANDLE wait_handle_;
29 bool stopping_;
30
31 WAITORTIMERCALLBACK callback_;
32 };
33
34
35 #endif // CHROME_FRAME_REGISTRY_WATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698