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

Unified Diff: chrome/browser/hang_monitor/hung_plugin_action.h

Issue 1815623004: Remove Hung plugin detector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_windowed_plugins
Patch Set: fix compile Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/hang_monitor/hung_plugin_action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/hang_monitor/hung_plugin_action.h
diff --git a/chrome/browser/hang_monitor/hung_plugin_action.h b/chrome/browser/hang_monitor/hung_plugin_action.h
deleted file mode 100644
index bc38ef581e10a369fddf7fdd3342000c606e798a..0000000000000000000000000000000000000000
--- a/chrome/browser/hang_monitor/hung_plugin_action.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_HANG_MONITOR_HUNG_PLUGIN_ACTION_H__
-#define CHROME_BROWSER_HANG_MONITOR_HUNG_PLUGIN_ACTION_H__
-
-#include "base/strings/string16.h"
-#include "chrome/browser/hang_monitor/hung_window_detector.h"
-
-// This class provides an implementation the
-// HungWindowDetector::HungWindowNotification callback interface.
-// It checks to see if the hung window belongs to a process different
-// from that of the browser process and, if so, it returns an action
-// of HungWindowNotification::HUNG_WINDOW_TERMINATE_PROCESS.
-// Note: We can write other action classes that implement the same
-// interface and switch the action done on hung plugins based on user
-// preferences.
-class HungPluginAction : public HungWindowDetector::HungWindowNotification {
- public:
- HungPluginAction();
- ~HungPluginAction();
- // HungWindowNotification implementation
- bool OnHungWindowDetected(HWND hung_window,
- HWND top_level_window,
- ActionOnHungWindow* action) override;
-
- protected:
- void OnWindowResponsive(HWND window);
-
- // The callback function for the SendMessageCallback API
- static void CALLBACK HungWindowResponseCallback(HWND target_window,
- UINT message,
- ULONG_PTR data,
- LRESULT result);
-
- static BOOL CALLBACK DismissMessageBox(HWND window, LPARAM ignore);
-
- protected:
- bool GetPluginNameAndVersion(HWND plugin_window,
- DWORD browser_process_id,
- base::string16* plugin_name,
- base::string16* plugin_version);
- // The currently hung plugin window that we are prompting the user about
- HWND current_hung_plugin_window_;
-};
-
-#endif // CHROME_BROWSER_HANG_MONITOR_HUNG_PLUGIN_ACTION_H__
« no previous file with comments | « no previous file | chrome/browser/hang_monitor/hung_plugin_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698