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

Side by Side Diff: net/tools/get_server_time/get_server_time.cc

Issue 6362186595172352: net: Migrate from googleurl/ includes to url/ ones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and revert nss_ocsp.cc changes Created 7 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 | Annotate | Revision Log
« no previous file with comments | « net/tools/dump_cache/upgrade_win.cc ('k') | net/tools/quic/spdy_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This is a small utility that snarfs the server time from the 5 // This is a small utility that snarfs the server time from the
6 // response headers of an http/https HEAD request and compares it to 6 // response headers of an http/https HEAD request and compares it to
7 // the local time. 7 // the local time.
8 // 8 //
9 // TODO(akalin): Also snarf the server time from the TLS handshake, if 9 // TODO(akalin): Also snarf the server time from the TLS handshake, if
10 // any (http://crbug.com/146090). 10 // any (http://crbug.com/146090).
(...skipping 12 matching lines...) Expand all
23 #include "base/logging.h" 23 #include "base/logging.h"
24 #include "base/memory/ref_counted.h" 24 #include "base/memory/ref_counted.h"
25 #include "base/memory/scoped_ptr.h" 25 #include "base/memory/scoped_ptr.h"
26 #include "base/message_loop.h" 26 #include "base/message_loop.h"
27 #include "base/single_thread_task_runner.h" 27 #include "base/single_thread_task_runner.h"
28 #include "base/strings/string_number_conversions.h" 28 #include "base/strings/string_number_conversions.h"
29 #include "base/strings/utf_string_conversions.h" 29 #include "base/strings/utf_string_conversions.h"
30 #include "base/time/time.h" 30 #include "base/time/time.h"
31 #include "base/values.h" 31 #include "base/values.h"
32 #include "build/build_config.h" 32 #include "build/build_config.h"
33 #include "googleurl/src/gurl.h"
34 #include "net/base/net_errors.h" 33 #include "net/base/net_errors.h"
35 #include "net/base/net_log.h" 34 #include "net/base/net_log.h"
36 #include "net/http/http_response_headers.h" 35 #include "net/http/http_response_headers.h"
37 #include "net/url_request/url_fetcher.h" 36 #include "net/url_request/url_fetcher.h"
38 #include "net/url_request/url_fetcher_delegate.h" 37 #include "net/url_request/url_fetcher_delegate.h"
39 #include "net/url_request/url_request_context.h" 38 #include "net/url_request/url_request_context.h"
40 #include "net/url_request/url_request_context_builder.h" 39 #include "net/url_request/url_request_context_builder.h"
41 #include "net/url_request/url_request_context_getter.h" 40 #include "net/url_request/url_request_context_getter.h"
42 #include "net/url_request/url_request_status.h" 41 #include "net/url_request/url_request_status.h"
42 #include "url/gurl.h"
43 43
44 #if defined(OS_MACOSX) 44 #if defined(OS_MACOSX)
45 #include "base/mac/scoped_nsautorelease_pool.h" 45 #include "base/mac/scoped_nsautorelease_pool.h"
46 #elif defined(OS_LINUX) 46 #elif defined(OS_LINUX)
47 #include "net/proxy/proxy_config.h" 47 #include "net/proxy/proxy_config.h"
48 #include "net/proxy/proxy_config_service_fixed.h" 48 #include "net/proxy/proxy_config_service_fixed.h"
49 #endif 49 #endif
50 50
51 namespace { 51 namespace {
52 52
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 &skew, &skew_uncertainty); 345 &skew, &skew_uncertainty);
346 346
347 std::printf( 347 std::printf(
348 "An estimate for the local clock skew is %.2f ms with " 348 "An estimate for the local clock skew is %.2f ms with "
349 "uncertainty %.2f ms\n", 349 "uncertainty %.2f ms\n",
350 skew.InMillisecondsF(), 350 skew.InMillisecondsF(),
351 skew_uncertainty.InMillisecondsF()); 351 skew_uncertainty.InMillisecondsF());
352 352
353 return EXIT_SUCCESS; 353 return EXIT_SUCCESS;
354 } 354 }
OLDNEW
« no previous file with comments | « net/tools/dump_cache/upgrade_win.cc ('k') | net/tools/quic/spdy_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698