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

Side by Side Diff: remoting/host/it2me/it2me_native_messaging_host.cc

Issue 2452223002: It2Me Host changes to better support Confirmation Dialog (Closed)
Patch Set: Reordering enum 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 unified diff | Download patch
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 #include "remoting/host/it2me/it2me_native_messaging_host.h" 5 #include "remoting/host/it2me/it2me_native_messaging_host.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 namespace { 44 namespace {
45 45
46 const remoting::protocol::NameMapElement<It2MeHostState> kIt2MeHostStates[] = { 46 const remoting::protocol::NameMapElement<It2MeHostState> kIt2MeHostStates[] = {
47 {kDisconnected, "DISCONNECTED"}, 47 {kDisconnected, "DISCONNECTED"},
48 {kStarting, "STARTING"}, 48 {kStarting, "STARTING"},
49 {kRequestedAccessCode, "REQUESTED_ACCESS_CODE"}, 49 {kRequestedAccessCode, "REQUESTED_ACCESS_CODE"},
50 {kReceivedAccessCode, "RECEIVED_ACCESS_CODE"}, 50 {kReceivedAccessCode, "RECEIVED_ACCESS_CODE"},
51 {kConnected, "CONNECTED"}, 51 {kConnected, "CONNECTED"},
52 {kError, "ERROR"}, 52 {kError, "ERROR"},
53 {kInvalidDomainError, "INVALID_DOMAIN_ERROR"}, 53 {kInvalidDomainError, "INVALID_DOMAIN_ERROR"},
54 {kConnecting, "CONNECTING"},
54 }; 55 };
55 56
56 #if defined(OS_WIN) 57 #if defined(OS_WIN)
57 const base::FilePath::CharType kBaseHostBinaryName[] = 58 const base::FilePath::CharType kBaseHostBinaryName[] =
58 FILE_PATH_LITERAL("remote_assistance_host.exe"); 59 FILE_PATH_LITERAL("remote_assistance_host.exe");
59 const base::FilePath::CharType kElevatedHostBinaryName[] = 60 const base::FilePath::CharType kElevatedHostBinaryName[] =
60 FILE_PATH_LITERAL("remote_assistance_host_uiaccess.exe"); 61 FILE_PATH_LITERAL("remote_assistance_host_uiaccess.exe");
61 #endif // defined(OS_WIN) 62 #endif // defined(OS_WIN)
62 63
63 // Helper function to run |callback| on the correct thread using |task_runner|. 64 // Helper function to run |callback| on the correct thread using |task_runner|.
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 528
528 bool It2MeNativeMessagingHost::DelegateToElevatedHost( 529 bool It2MeNativeMessagingHost::DelegateToElevatedHost(
529 std::unique_ptr<base::DictionaryValue> message) { 530 std::unique_ptr<base::DictionaryValue> message) {
530 NOTREACHED(); 531 NOTREACHED();
531 return false; 532 return false;
532 } 533 }
533 534
534 #endif // !defined(OS_WIN) 535 #endif // !defined(OS_WIN)
535 536
536 } // namespace remoting 537 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/it2me/it2me_host_unittest.cc ('k') | remoting/host/it2me/it2me_native_messaging_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698