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

Side by Side Diff: chrome/browser/hang_monitor/hung_plugin_action.h

Issue 274040: More style nits. (Closed)
Patch Set: Created 11 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
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 CHROME_BROWSER_HANG_MONITOR_HUNG_WINDOW_DETECTOR_H__ 5 #ifndef CHROME_BROWSER_HANG_MONITOR_HUNG_PLUGIN_ACTION_H__
6 #define CHROME_BROWSER_HANG_MONITOR_HUNG_WINDOW_DETECTOR_H__ 6 #define CHROME_BROWSER_HANG_MONITOR_HUNG_PLUGIN_ACTION_H__
7 7
8 #include "chrome/browser/hang_monitor/hung_window_detector.h" 8 #include "chrome/browser/hang_monitor/hung_window_detector.h"
9 // This class provides an implementation the 9 // This class provides an implementation the
10 // HungWindowDetector::HungWindowNotification callback interface. 10 // HungWindowDetector::HungWindowNotification callback interface.
11 // It checks to see if the hung window belongs to a process different 11 // It checks to see if the hung window belongs to a process different
12 // from that of the browser process and, if so, it returns an action 12 // from that of the browser process and, if so, it returns an action
13 // of HungWindowNotification::HUNG_WINDOW_TERMINATE_PROCESS. 13 // of HungWindowNotification::HUNG_WINDOW_TERMINATE_PROCESS.
14 // Note: We can write other action classes that implement the same 14 // Note: We can write other action classes that implement the same
15 // interface and switch the action done on hung plugins based on user 15 // interface and switch the action done on hung plugins based on user
16 // preferences. 16 // preferences.
(...skipping 18 matching lines...) Expand all
35 static BOOL CALLBACK DismissMessageBox(HWND window, LPARAM ignore); 35 static BOOL CALLBACK DismissMessageBox(HWND window, LPARAM ignore);
36 36
37 protected: 37 protected:
38 bool GetPluginName(HWND plugin_window, 38 bool GetPluginName(HWND plugin_window,
39 DWORD browser_process_id, 39 DWORD browser_process_id,
40 std::wstring *plugin_name); 40 std::wstring *plugin_name);
41 // The currently hung plugin window that we are prompting the user about 41 // The currently hung plugin window that we are prompting the user about
42 HWND current_hung_plugin_window_; 42 HWND current_hung_plugin_window_;
43 }; 43 };
44 44
45 #endif // CHROME_BROWSER_HANG_MONITOR_HUNG_WINDOW_DETECTOR_H__ 45 #endif // CHROME_BROWSER_HANG_MONITOR_HUNG_PLUGIN_ACTION_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698