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

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

Issue 143303007: Enable pairing registry in me2me native messaging host on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pairing
Patch Set: Created 6 years, 10 months 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 #ifndef REMOTING_PROTOCOL_PAIRING_REGISTRY_DELEGATE_WIN_H_ 5 #ifndef REMOTING_PROTOCOL_PAIRING_REGISTRY_DELEGATE_WIN_H_
6 #define REMOTING_PROTOCOL_PAIRING_REGISTRY_DELEGATE_WIN_H_ 6 #define REMOTING_PROTOCOL_PAIRING_REGISTRY_DELEGATE_WIN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/win/registry.h" 13 #include "base/win/registry.h"
14 #include "remoting/protocol/pairing_registry.h" 14 #include "remoting/protocol/pairing_registry.h"
15 15
16 namespace base { 16 namespace base {
17 class ListValue; 17 class ListValue;
18 } // namespace base 18 } // namespace base
19 19
20 namespace remoting { 20 namespace remoting {
21 21
22 #if defined(OFFICIAL_BUILD)
23 const wchar_t kPairingRegistryKeyName[] =
24 L"SOFTWARE\\Google\\Chrome Remote Desktop\\paired-clients";
25 #else
26 const wchar_t kPairingRegistryKeyName[] =
27 L"SOFTWARE\\Chromoting\\paired-clients";
28 #endif
29
30 const wchar_t kPairingRegistryClientsKeyName[] = L"secrets";
31 const wchar_t kPairingRegistrySecretsKeyName[] = L"clients";
32
22 // Stores client pairing information in Windows registry. Two separate registry 33 // Stores client pairing information in Windows registry. Two separate registry
23 // keys are used: 34 // keys are used:
24 // - |privileged| - contains the shared secrets of all pairings. This key must 35 // - |privileged| - contains the shared secrets of all pairings. This key must
25 // be protected by a strong ACL denying access to unprivileged 36 // be protected by a strong ACL denying access to unprivileged
26 // code. 37 // code.
27 // - |unprivileged| - contains the rest of pairing state. 38 // - |unprivileged| - contains the rest of pairing state.
28 // 39 //
29 // Creator of this object is responsible for passing the registry key handles 40 // Creator of this object is responsible for passing the registry key handles
30 // with appropriate access. |privileged| may be NULL if read-only access is 41 // with appropriate access. |privileged| may be NULL if read-only access is
31 // sufficient. Shared secrets will not be returned in such a case. 42 // sufficient. Shared secrets will not be returned in such a case.
(...skipping 19 matching lines...) Expand all
51 private: 62 private:
52 base::win::RegKey privileged_; 63 base::win::RegKey privileged_;
53 base::win::RegKey unprivileged_; 64 base::win::RegKey unprivileged_;
54 65
55 DISALLOW_COPY_AND_ASSIGN(PairingRegistryDelegateWin); 66 DISALLOW_COPY_AND_ASSIGN(PairingRegistryDelegateWin);
56 }; 67 };
57 68
58 } // namespace remoting 69 } // namespace remoting
59 70
60 #endif // REMOTING_PROTOCOL_PAIRING_REGISTRY_DELEGATE_WIN_H_ 71 #endif // REMOTING_PROTOCOL_PAIRING_REGISTRY_DELEGATE_WIN_H_
OLDNEW
« no previous file with comments | « remoting/host/installer/win/chromoting.wxs ('k') | remoting/host/setup/me2me_native_messaging_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698