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

Side by Side Diff: remoting/host/security_key/security_key_ipc_server_impl.cc

Issue 2581853002: Removing ipc_util files and references (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/security_key/security_key_auth_handler_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "remoting/host/security_key/security_key_ipc_server_impl.h" 5 #include "remoting/host/security_key/security_key_ipc_server_impl.h"
6 6
7 #include <cstdint> 7 #include <cstdint>
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 11 matching lines...) Expand all
22 #include "mojo/edk/embedder/named_platform_handle.h" 22 #include "mojo/edk/embedder/named_platform_handle.h"
23 #include "mojo/edk/embedder/named_platform_handle_utils.h" 23 #include "mojo/edk/embedder/named_platform_handle_utils.h"
24 #include "remoting/base/logging.h" 24 #include "remoting/base/logging.h"
25 #include "remoting/host/chromoting_messages.h" 25 #include "remoting/host/chromoting_messages.h"
26 #include "remoting/host/client_session_details.h" 26 #include "remoting/host/client_session_details.h"
27 27
28 #if defined(OS_WIN) 28 #if defined(OS_WIN)
29 #include "base/strings/stringprintf.h" 29 #include "base/strings/stringprintf.h"
30 #include "base/strings/utf_string_conversions.h" 30 #include "base/strings/utf_string_conversions.h"
31 #include "base/win/win_util.h" 31 #include "base/win/win_util.h"
32 #include "remoting/host/ipc_util.h"
33 #endif // defined(OS_WIN) 32 #endif // defined(OS_WIN)
34 33
35 namespace { 34 namespace {
36 35
37 // Returns the command code (the first byte of the data) if it exists, or -1 if 36 // Returns the command code (the first byte of the data) if it exists, or -1 if
38 // the data is empty. 37 // the data is empty.
39 unsigned int GetCommandCode(const std::string& data) { 38 unsigned int GetCommandCode(const std::string& data) {
40 return data.empty() ? -1 : static_cast<unsigned int>(data[0]); 39 return data.empty() ? -1 : static_cast<unsigned int>(data[0]);
41 } 40 }
42 41
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 connection_close_pending_ = false; 207 connection_close_pending_ = false;
209 } 208 }
210 // Close the underlying mojo connection. 209 // Close the underlying mojo connection.
211 if (!mojo_peer_token_.empty()) { 210 if (!mojo_peer_token_.empty()) {
212 mojo::edk::ClosePeerConnection(mojo_peer_token_); 211 mojo::edk::ClosePeerConnection(mojo_peer_token_);
213 mojo_peer_token_.clear(); 212 mojo_peer_token_.clear();
214 } 213 }
215 } 214 }
216 215
217 } // namespace remoting 216 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/security_key/security_key_auth_handler_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698