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

Side by Side Diff: google_apis/gcm/tools/mcs_probe.cc

Issue 1128043007: Support Kerberos on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cbentzel@'s nits Created 5 years, 5 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 // A standalone tool for testing MCS connections and the MCS client on their 5 // A standalone tool for testing MCS connections and the MCS client on their
6 // own. 6 // own.
7 7
8 #include <cstddef> 8 #include <cstddef>
9 #include <cstdio> 9 #include <cstdio>
10 #include <string> 10 #include <string>
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 } else { 370 } else {
371 cert_verifier_.reset(net::CertVerifier::CreateDefault()); 371 cert_verifier_.reset(net::CertVerifier::CreateDefault());
372 } 372 }
373 system_channel_id_service_.reset( 373 system_channel_id_service_.reset(
374 new net::ChannelIDService( 374 new net::ChannelIDService(
375 new net::DefaultChannelIDStore(NULL), 375 new net::DefaultChannelIDStore(NULL),
376 base::WorkerPool::GetTaskRunner(true))); 376 base::WorkerPool::GetTaskRunner(true)));
377 377
378 transport_security_state_.reset(new net::TransportSecurityState()); 378 transport_security_state_.reset(new net::TransportSecurityState());
379 url_security_manager_.reset(net::URLSecurityManager::Create(NULL, NULL)); 379 url_security_manager_.reset(net::URLSecurityManager::Create(NULL, NULL));
380 http_auth_handler_factory_.reset( 380 http_auth_handler_factory_.reset(net::HttpAuthHandlerRegistryFactory::Create(
381 net::HttpAuthHandlerRegistryFactory::Create( 381 std::vector<std::string>(1, "basic"), url_security_manager_.get(),
382 std::vector<std::string>(1, "basic"), 382 host_resolver_.get(), std::string(), std::string(), false, false));
383 url_security_manager_.get(),
384 host_resolver_.get(),
385 std::string(),
386 false,
387 false));
388 http_server_properties_.reset(new net::HttpServerPropertiesImpl()); 383 http_server_properties_.reset(new net::HttpServerPropertiesImpl());
389 host_mapping_rules_.reset(new net::HostMappingRules()); 384 host_mapping_rules_.reset(new net::HostMappingRules());
390 proxy_service_.reset(net::ProxyService::CreateDirectWithNetLog(&net_log_)); 385 proxy_service_.reset(net::ProxyService::CreateDirectWithNetLog(&net_log_));
391 } 386 }
392 387
393 void MCSProbe::BuildNetworkSession() { 388 void MCSProbe::BuildNetworkSession() {
394 net::HttpNetworkSession::Params session_params; 389 net::HttpNetworkSession::Params session_params;
395 session_params.host_resolver = host_resolver_.get(); 390 session_params.host_resolver = host_resolver_.get();
396 session_params.cert_verifier = cert_verifier_.get(); 391 session_params.cert_verifier = cert_verifier_.get();
397 session_params.channel_id_service = system_channel_id_service_.get(); 392 session_params.channel_id_service = system_channel_id_service_.get();
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 490
496 return 0; 491 return 0;
497 } 492 }
498 493
499 } // namespace 494 } // namespace
500 } // namespace gcm 495 } // namespace gcm
501 496
502 int main(int argc, char* argv[]) { 497 int main(int argc, char* argv[]) {
503 return gcm::MCSProbeMain(argc, argv); 498 return gcm::MCSProbeMain(argc, argv);
504 } 499 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698