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

Unified Diff: remoting/host/token_validator_base.h

Issue 966433002: Malformed PortRange or ThirdPartyAuthConfig trigger OnPolicyError. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing a Windows-specific, pre-processor-related build break. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/third_party_auth_config_unittest.cc ('k') | remoting/protocol/chromium_port_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/token_validator_base.h
diff --git a/remoting/host/token_validator_base.h b/remoting/host/token_validator_base.h
index b5c7d20ed5dea6fa52b4a0c85ef750e139cbf863..c59d15d6ffb73e784fd9cb731a4325d6e1ff33c5 100644
--- a/remoting/host/token_validator_base.h
+++ b/remoting/host/token_validator_base.h
@@ -9,6 +9,7 @@
#include "base/memory/weak_ptr.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context_getter.h"
+#include "remoting/host/third_party_auth_config.h"
#include "remoting/protocol/token_validator.h"
#include "url/gurl.h"
@@ -19,20 +20,6 @@ typedef std::vector<scoped_refptr<X509Certificate> > CertificateList;
namespace remoting {
-struct ThirdPartyAuthConfig {
- inline bool is_empty() const {
- return token_url.is_empty() && token_validation_url.is_empty();
- }
-
- inline bool is_valid() const {
- return token_url.is_valid() && token_validation_url.is_valid();
- }
-
- GURL token_url;
- GURL token_validation_url;
- std::string token_validation_cert_issuer;
-};
-
class TokenValidatorBase
: public net::URLRequest::Delegate,
public protocol::TokenValidator {
« no previous file with comments | « remoting/host/third_party_auth_config_unittest.cc ('k') | remoting/protocol/chromium_port_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698