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

Side by Side Diff: base/event_recorder.h

Issue 4273: Fix some issues found looking at the code. I have made two posts about it:... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 2 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
« no previous file with comments | « base/base_drop_target.cc ('k') | base/histogram.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_EVENT_RECORDER_H_ 5 #ifndef BASE_EVENT_RECORDER_H_
6 #define BASE_EVENT_RECORDER_H_ 6 #define BASE_EVENT_RECORDER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <windows.h> 9 #include <windows.h>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 LRESULT PlaybackWndProc(int nCode, WPARAM wParam, LPARAM lParam); 61 LRESULT PlaybackWndProc(int nCode, WPARAM wParam, LPARAM lParam);
62 62
63 private: 63 private:
64 // Create a new EventRecorder. Events are saved to the file filename. 64 // Create a new EventRecorder. Events are saved to the file filename.
65 // If the file already exists, it will be deleted before recording 65 // If the file already exists, it will be deleted before recording
66 // starts. 66 // starts.
67 explicit EventRecorder() 67 explicit EventRecorder()
68 : is_recording_(false), 68 : is_recording_(false),
69 is_playing_(false), 69 is_playing_(false),
70 journal_hook_(NULL), 70 journal_hook_(NULL),
71 file_(NULL) { 71 file_(NULL),
72 playback_msg_(),
73 playback_first_msg_time_(0),
74 playback_start_time_(0) {
72 } 75 }
73 ~EventRecorder(); 76 ~EventRecorder();
74 77
75 static EventRecorder* current_; // Our singleton. 78 static EventRecorder* current_; // Our singleton.
76 79
77 bool is_recording_; 80 bool is_recording_;
78 bool is_playing_; 81 bool is_playing_;
79 HHOOK journal_hook_; 82 HHOOK journal_hook_;
80 FILE* file_; 83 FILE* file_;
81 EVENTMSG playback_msg_; 84 EVENTMSG playback_msg_;
82 int playback_first_msg_time_; 85 int playback_first_msg_time_;
83 int playback_start_time_; 86 int playback_start_time_;
84 87
85 DISALLOW_EVIL_CONSTRUCTORS(EventRecorder); 88 DISALLOW_EVIL_CONSTRUCTORS(EventRecorder);
86 }; 89 };
87 90
88 } // namespace base 91 } // namespace base
89 92
90 #endif // BASE_EVENT_RECORDER_H_ 93 #endif // BASE_EVENT_RECORDER_H_
91 94
OLDNEW
« no previous file with comments | « base/base_drop_target.cc ('k') | base/histogram.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698