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

Side by Side Diff: remoting/host/chromoting_param_traits.h

Issue 2529533003: Pass DesktopEnvironmentOptions form network to desktop process. (Closed)
Patch Set: Created 4 years 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_ 5 #ifndef REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_
6 #define REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_ 6 #define REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_
7 7
8 #include "ipc/ipc_message.h" 8 #include "ipc/ipc_message.h"
9 #include "ipc/ipc_param_traits.h" 9 #include "ipc/ipc_param_traits.h"
10 #include "net/base/ip_address.h" 10 #include "net/base/ip_address.h"
11 #include "net/base/ip_endpoint.h" 11 #include "net/base/ip_endpoint.h"
12 #include "remoting/host/desktop_environment_options.h"
12 #include "remoting/host/screen_resolution.h" 13 #include "remoting/host/screen_resolution.h"
13 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" 14 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
14 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" 15 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
15 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor.h" 16 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor.h"
16 17
17 namespace IPC { 18 namespace IPC {
18 19
19 template <> 20 template <>
20 struct ParamTraits<webrtc::DesktopVector> { 21 struct ParamTraits<webrtc::DesktopVector> {
21 typedef webrtc::DesktopVector param_type; 22 typedef webrtc::DesktopVector param_type;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 struct ParamTraits<net::IPEndPoint> { 74 struct ParamTraits<net::IPEndPoint> {
74 typedef net::IPEndPoint param_type; 75 typedef net::IPEndPoint param_type;
75 static void GetSize(base::PickleSizer* s, const param_type& p); 76 static void GetSize(base::PickleSizer* s, const param_type& p);
76 static void Write(base::Pickle* m, const param_type& p); 77 static void Write(base::Pickle* m, const param_type& p);
77 static bool Read(const base::Pickle* m, 78 static bool Read(const base::Pickle* m,
78 base::PickleIterator* iter, 79 base::PickleIterator* iter,
79 param_type* p); 80 param_type* p);
80 static void Log(const param_type& p, std::string* l); 81 static void Log(const param_type& p, std::string* l);
81 }; 82 };
82 83
84 template <>
85 struct ParamTraits<remoting::DesktopEnvironmentOptions> {
86 typedef remoting::DesktopEnvironmentOptions param_type;
87 static void Write(base::Pickle* m, const param_type& p);
88 static bool Read(const base::Pickle* m,
89 base::PickleIterator* iter,
90 param_type* p);
91 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.
92 };
93
83 } // namespace IPC 94 } // namespace IPC
84 95
85 #endif // REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_ 96 #endif // REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_
OLDNEW
« 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