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

Side by Side Diff: net/http/http_server_properties_manager.cc

Issue 1230313005: split port_util.h off of net_util.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove garbage that got added 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
« no previous file with comments | « net/ftp/ftp_network_transaction.cc ('k') | net/http/http_stream_factory.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "net/http/http_server_properties_manager.h" 5 #include "net/http/http_server_properties_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
14 #include "base/thread_task_runner_handle.h" 14 #include "base/thread_task_runner_handle.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "net/base/ip_address_number.h" 16 #include "net/base/ip_address_number.h"
17 #include "net/base/port_util.h"
17 18
18 namespace net { 19 namespace net {
19 20
20 namespace { 21 namespace {
21 22
22 // Time to wait before starting an update the http_server_properties_impl_ cache 23 // Time to wait before starting an update the http_server_properties_impl_ cache
23 // from preferences. Scheduling another update during this period will reset the 24 // from preferences. Scheduling another update during this period will reset the
24 // timer. 25 // timer.
25 const int64 kUpdateCacheDelayMs = 1000; 26 const int64 kUpdateCacheDelayMs = 1000;
26 27
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 server_network_stats_dict); 1021 server_network_stats_dict);
1021 } 1022 }
1022 1023
1023 void HttpServerPropertiesManager::OnHttpServerPropertiesChanged() { 1024 void HttpServerPropertiesManager::OnHttpServerPropertiesChanged() {
1024 DCHECK(pref_task_runner_->RunsTasksOnCurrentThread()); 1025 DCHECK(pref_task_runner_->RunsTasksOnCurrentThread());
1025 if (!setting_prefs_) 1026 if (!setting_prefs_)
1026 ScheduleUpdateCacheOnPrefThread(); 1027 ScheduleUpdateCacheOnPrefThread();
1027 } 1028 }
1028 1029
1029 } // namespace net 1030 } // namespace net
OLDNEW
« no previous file with comments | « net/ftp/ftp_network_transaction.cc ('k') | net/http/http_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698