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

Side by Side Diff: remoting/client/plugin/chromoting_instance.cc

Issue 1755273003: Simplify AuthenticationMethod type and PIN hash handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/client/plugin/chromoting_instance.h" 5 #include "remoting/client/plugin/chromoting_instance.h"
6 6
7 #include <nacl_io/nacl_io.h> 7 #include <nacl_io/nacl_io.h>
8 #include <sys/mount.h> 8 #include <sys/mount.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 protocol::TransportRole::CLIENT)); 698 protocol::TransportRole::CLIENT));
699 699
700 // Create Authenticator. 700 // Create Authenticator.
701 scoped_ptr<protocol::ThirdPartyClientAuthenticator::TokenFetcher> 701 scoped_ptr<protocol::ThirdPartyClientAuthenticator::TokenFetcher>
702 token_fetcher(new TokenFetcherProxy( 702 token_fetcher(new TokenFetcherProxy(
703 base::Bind(&ChromotingInstance::FetchThirdPartyToken, 703 base::Bind(&ChromotingInstance::FetchThirdPartyToken,
704 weak_factory_.GetWeakPtr()), 704 weak_factory_.GetWeakPtr()),
705 host_public_key)); 705 host_public_key));
706 706
707 std::vector<protocol::AuthenticationMethod> auth_methods; 707 std::vector<protocol::AuthenticationMethod> auth_methods;
708 auth_methods.push_back(protocol::AuthenticationMethod::ThirdParty()); 708 auth_methods.push_back(protocol::AuthenticationMethod::THIRD_PARTY);
709 auth_methods.push_back(protocol::AuthenticationMethod::Spake2Pair()); 709 auth_methods.push_back(protocol::AuthenticationMethod::SPAKE2_PAIR);
710 auth_methods.push_back(protocol::AuthenticationMethod::Spake2( 710 auth_methods.push_back(
711 protocol::AuthenticationMethod::HMAC_SHA256)); 711 protocol::AuthenticationMethod::SPAKE2_SHARED_SECRET_HMAC);
712 auth_methods.push_back(protocol::AuthenticationMethod::Spake2( 712 auth_methods.push_back(
713 protocol::AuthenticationMethod::NONE)); 713 protocol::AuthenticationMethod::SPAKE2_SHARED_SECRET_PLAIN);
714 714
715 scoped_ptr<protocol::Authenticator> authenticator( 715 scoped_ptr<protocol::Authenticator> authenticator(
716 new protocol::NegotiatingClientAuthenticator( 716 new protocol::NegotiatingClientAuthenticator(
717 client_pairing_id, client_paired_secret, authentication_tag, 717 client_pairing_id, client_paired_secret, authentication_tag,
718 fetch_secret_callback, std::move(token_fetcher), auth_methods)); 718 fetch_secret_callback, std::move(token_fetcher), auth_methods));
719 719
720 scoped_ptr<protocol::CandidateSessionConfig> config = 720 scoped_ptr<protocol::CandidateSessionConfig> config =
721 protocol::CandidateSessionConfig::CreateDefault(); 721 protocol::CandidateSessionConfig::CreateDefault();
722 if (std::find(experiments_list.begin(), experiments_list.end(), "vp9") != 722 if (std::find(experiments_list.begin(), experiments_list.end(), "vp9") !=
723 experiments_list.end()) { 723 experiments_list.end()) {
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 if (is_custom_counts_histogram) { 1152 if (is_custom_counts_histogram) {
1153 uma.HistogramCustomCounts(histogram_name, value, histogram_min, 1153 uma.HistogramCustomCounts(histogram_name, value, histogram_min,
1154 histogram_max, histogram_buckets); 1154 histogram_max, histogram_buckets);
1155 } else { 1155 } else {
1156 uma.HistogramCustomTimes(histogram_name, value, histogram_min, 1156 uma.HistogramCustomTimes(histogram_name, value, histogram_min,
1157 histogram_max, histogram_buckets); 1157 histogram_max, histogram_buckets);
1158 } 1158 }
1159 } 1159 }
1160 1160
1161 } // namespace remoting 1161 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698