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

Unified Diff: remoting/host/chromoting_param_traits.h

Issue 2529533003: Pass DesktopEnvironmentOptions form network to desktop process. (Closed)
Patch Set: Created 4 years, 1 month 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 | « remoting/host/chromoting_messages.h ('k') | remoting/host/chromoting_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_param_traits.h
diff --git a/remoting/host/chromoting_param_traits.h b/remoting/host/chromoting_param_traits.h
index 9763ee9f7254d1d112e55d55e691d715fb3becb7..a7be2112d4710be1c72126cd8b908e5c1dce4c65 100644
--- a/remoting/host/chromoting_param_traits.h
+++ b/remoting/host/chromoting_param_traits.h
@@ -9,6 +9,7 @@
#include "ipc/ipc_param_traits.h"
#include "net/base/ip_address.h"
#include "net/base/ip_endpoint.h"
+#include "remoting/host/desktop_environment_options.h"
#include "remoting/host/screen_resolution.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
@@ -80,6 +81,16 @@ struct ParamTraits<net::IPEndPoint> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct ParamTraits<remoting::DesktopEnvironmentOptions> {
+ typedef remoting::DesktopEnvironmentOptions param_type;
+ static void Write(base::Pickle* m, const param_type& p);
+ static bool Read(const base::Pickle* m,
+ base::PickleIterator* iter,
+ param_type* p);
+ static void Log(const param_type& p, std::string* l);
Hzj_jie 2016/11/28 00:10:45 Share we consider to add a ParamTraits<DesktopCapt
Sergey Ulanov 2016/11/28 19:54:41 I don't think we really need it right now.
+};
+
} // namespace IPC
#endif // REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_
« no previous file with comments | « remoting/host/chromoting_messages.h ('k') | remoting/host/chromoting_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698