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

Unified Diff: base/win/message_window.h

Issue 15261005: Allow multiple base::MessagePumpForUI instances to be created simultanenously on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback Created 7 years, 7 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
Index: base/win/message_window.h
diff --git a/remoting/host/win/message_window.h b/base/win/message_window.h
similarity index 82%
rename from remoting/host/win/message_window.h
rename to base/win/message_window.h
index ecd2a36276b597b6aa6dadc19da6cba9fecdcbcb..9cc4573bfa71d2eb6179a38a21d44bf5a6e215cf 100644
--- a/remoting/host/win/message_window.h
+++ b/base/win/message_window.h
@@ -2,25 +2,26 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef REMOTING_HOST_WIN_MESSAGE_WINDOW_H_
-#define REMOTING_HOST_WIN_MESSAGE_WINDOW_H_
+#ifndef BASE_WIN_MESSAGE_WINDOW_H_
+#define BASE_WIN_MESSAGE_WINDOW_H_
#include <windows.h>
#include <string>
+#include "base/base_export.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/threading/non_thread_safe.h"
-namespace remoting {
+namespace base {
namespace win {
// Implements a message-only window.
-class MessageWindow : base::NonThreadSafe {
+class BASE_EXPORT MessageWindow : base::NonThreadSafe {
public:
// Handles incoming window messages.
- class Delegate {
+ class BASE_EXPORT Delegate {
public:
virtual ~Delegate() {}
@@ -32,7 +33,6 @@ class MessageWindow : base::NonThreadSafe {
};
MessageWindow();
- MessageWindow(const std::string& class_name, HINSTANCE instance);
~MessageWindow();
// Registers the window class and creates the window. The incoming messages
@@ -62,6 +62,6 @@ class MessageWindow : base::NonThreadSafe {
};
} // namespace win
-} // namespace remoting
+} // namespace base
-#endif // REMOTING_HOST_WIN_MESSAGE_WINDOW_H_
+#endif // BASE_WIN_MESSAGE_WINDOW_H_

Powered by Google App Engine
This is Rietveld 408576698