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

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

Issue 9958104: Log when a browser plugin hangs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update based on jam@'s review comments Created 8 years, 8 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
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_PLUGIN_ACTION_H__ 5 #ifndef CHROME_BROWSER_HANG_MONITOR_HUNG_PLUGIN_ACTION_H__
6 #define CHROME_BROWSER_HANG_MONITOR_HUNG_PLUGIN_ACTION_H__ 6 #define CHROME_BROWSER_HANG_MONITOR_HUNG_PLUGIN_ACTION_H__
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/hang_monitor/hung_window_detector.h" 9 #include "chrome/browser/hang_monitor/hung_window_detector.h"
10 // This class provides an implementation the 10 // This class provides an implementation the
(...skipping 18 matching lines...) Expand all
29 29
30 // The callback function for the SendMessageCallback API 30 // The callback function for the SendMessageCallback API
31 static void CALLBACK HungWindowResponseCallback(HWND target_window, 31 static void CALLBACK HungWindowResponseCallback(HWND target_window,
32 UINT message, 32 UINT message,
33 ULONG_PTR data, 33 ULONG_PTR data,
34 LRESULT result); 34 LRESULT result);
35 35
36 static BOOL CALLBACK DismissMessageBox(HWND window, LPARAM ignore); 36 static BOOL CALLBACK DismissMessageBox(HWND window, LPARAM ignore);
37 37
38 protected: 38 protected:
39 bool GetPluginName(HWND plugin_window, 39 bool GetPluginNameAndVersion(HWND plugin_window,
40 DWORD browser_process_id, 40 DWORD browser_process_id,
41 std::wstring *plugin_name); 41 std::wstring *plugin_name,
42 std::wstring *plugin_version);
42 // The currently hung plugin window that we are prompting the user about 43 // The currently hung plugin window that we are prompting the user about
43 HWND current_hung_plugin_window_; 44 HWND current_hung_plugin_window_;
44 }; 45 };
45 46
46 #endif // CHROME_BROWSER_HANG_MONITOR_HUNG_PLUGIN_ACTION_H__ 47 #endif // CHROME_BROWSER_HANG_MONITOR_HUNG_PLUGIN_ACTION_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/hang_monitor/hung_plugin_action.cc » ('j') | chrome/browser/hang_monitor/hung_plugin_action.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698