Index: remoting/host/resizing_host_observer.h |
diff --git a/remoting/host/resizing_host_observer.h b/remoting/host/resizing_host_observer.h |
index 2682d76627d8ee208030646f61de3983a0052f42..325aaed4accf34cb32b646d30953b70b7a448376 100644 |
--- a/remoting/host/resizing_host_observer.h |
+++ b/remoting/host/resizing_host_observer.h |
@@ -8,13 +8,15 @@ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
#include "base/memory/scoped_ptr.h" |
+#include "base/memory/weak_ptr.h" |
+#include "base/time.h" |
#include "remoting/host/screen_controls.h" |
+#include "remoting/host/screen_resolution.h" |
#include "third_party/skia/include/core/SkSize.h" |
namespace remoting { |
class DesktopResizer; |
-class ScreenResolution; |
// TODO(alexeypa): Rename this class to reflect that it is not |
// HostStatusObserver any more. |
@@ -31,9 +33,17 @@ class ResizingHostObserver : public ScreenControls { |
virtual void SetScreenResolution(const ScreenResolution& resolution) OVERRIDE; |
private: |
+ void SetPendingScreenResolution(); |
+ |
scoped_ptr<DesktopResizer> desktop_resizer_; |
SkISize original_size_; |
+ ScreenResolution pending_resolution_; |
alexeypa (please no reviews)
2013/06/04 00:05:26
nit: Add comments explaining what these members ar
Jamie
2013/06/04 01:27:49
Done.
|
+ base::Time previous_resize_time_; |
+ bool resize_pending_; |
+ |
+ base::WeakPtrFactory<ResizingHostObserver> weak_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ResizingHostObserver); |
}; |