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

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

Issue 8662001: Remove AccessVerifier interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/host/chromoting_host.h » ('j') | remoting/host/client_session.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_ACCESS_VERIFIER_H_ 5 #ifndef REMOTING_HOST_ACCESS_VERIFIER_H_
6 #define REMOTING_HOST_ACCESS_VERIFIER_H_ 6 #define REMOTING_HOST_ACCESS_VERIFIER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 // AccessVerifier is used by ChromotingHost to verify that access to 14 // AccessVerifier is used by ChromotingHost to verify that access to
15 // the host. There are two implementations: SelfAccessVerifier is used 15 // the host. There are two implementations: SelfAccessVerifier is used
16 // in the Me2Me scenario, SupportAccessVerifier is used for Me2Mom. 16 // in the Me2Me scenario, SupportAccessVerifier is used for Me2Mom.
Wez 2011/11/23 01:23:04 Presumably SupportAccessVerifier is no longer requ
17 class AccessVerifier { 17 class AccessVerifier {
Wez 2011/11/23 01:23:04 Why do we still need this interface? Can't we app
Sergey Ulanov 2011/11/23 21:18:46 We may still need something like it later, e.g. fo
18 public: 18 public:
19 AccessVerifier() { } 19 AccessVerifier() { }
20 virtual ~AccessVerifier() { } 20 virtual ~AccessVerifier() { }
21 21
22 virtual bool VerifyPermissions(const std::string& client_jid, 22 virtual bool VerifyPermissions(const std::string& client_jid) = 0;
Wez 2011/11/23 01:23:04 Do we want the |client_jid|, or the user's GAIA Id
23 const std::string& encoded_client_token) = 0;
24 }; 23 };
25 24
26 } // namespace remoting 25 } // namespace remoting
27 26
28 #endif // REMOTING_HOST_ACCESS_VERIFIER_H_ 27 #endif // REMOTING_HOST_ACCESS_VERIFIER_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/chromoting_host.h » ('j') | remoting/host/client_session.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698