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

Unified Diff: chrome/browser/process_singleton.h

Issue 17615003: ProcessSingleton now uses base::win::MessageWindow to create a message-only window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_process_finder_win.cc ('k') | chrome/browser/process_singleton_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/process_singleton.h
diff --git a/chrome/browser/process_singleton.h b/chrome/browser/process_singleton.h
index 737dabaf4cec8ce0b5fae0c5f90d8bc5a710b149..a584147d5f3759f8c8f096d2bb3c35f4cf035361 100644
--- a/chrome/browser/process_singleton.h
+++ b/chrome/browser/process_singleton.h
@@ -28,6 +28,10 @@
#include "base/files/scoped_temp_dir.h"
#endif // defined(OS_LINUX) || defined(OS_OPENBSD)
+#if defined(OS_WIN)
+#include "base/win/message_window.h"
+#endif // defined(OS_WIN)
+
class CommandLine;
// ProcessSingleton ----------------------------------------------------------
@@ -84,10 +88,6 @@ class ProcessSingleton : public base::NonThreadSafe {
// Clear any lock state during shutdown.
void Cleanup();
-#if defined(OS_WIN)
- LRESULT WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
-#endif
-
#if defined(OS_LINUX) || defined(OS_OPENBSD)
static void DisablePromptForTesting();
#endif // defined(OS_LINUX) || defined(OS_OPENBSD)
@@ -123,13 +123,10 @@ class ProcessSingleton : public base::NonThreadSafe {
NotificationCallback notification_callback_; // Handler for notifications.
#if defined(OS_WIN)
- // This ugly behemoth handles startup commands sent from another process.
- LRESULT OnCopyData(HWND hwnd, const COPYDATASTRUCT* cds);
-
bool EscapeVirtualization(const base::FilePath& user_data_dir);
HWND remote_window_; // The HWND_MESSAGE of another browser.
- HWND window_; // The HWND_MESSAGE window.
+ base::win::MessageWindow window_; // The message-only window.
bool is_virtualized_; // Stuck inside Microsoft Softricity VM environment.
HANDLE lock_file_;
base::FilePath user_data_dir_;
« no previous file with comments | « chrome/browser/chrome_process_finder_win.cc ('k') | chrome/browser/process_singleton_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698