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

Side by Side Diff: chrome/browser/net/dns_master.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // See header file for description of class 5 // See header file for description of class
6 6
7 #include "chrome/browser/net/dns_master.h" 7 #include "chrome/browser/net/dns_master.h"
8 8
9 #include <sstream> 9 #include <sstream>
10 10
11 #include "base/histogram.h" 11 #include "base/histogram.h"
12 #include "base/stats_counters.h" 12 #include "base/stats_counters.h"
13 #include "base/thread.h" 13 #include "base/thread.h"
14 #include "base/win_util.h" 14 #include "base/win_util.h"
15 #include "chrome/browser/net/dns_slave.h" 15 #include "chrome/browser/net/dns_slave.h"
16 16
17 using base::TimeDelta;
18
17 namespace chrome_browser_net { 19 namespace chrome_browser_net {
18 20
19 //------------------------------------------------------------------------------ 21 //------------------------------------------------------------------------------
20 // This section contains methods for the DnsMaster class. 22 // This section contains methods for the DnsMaster class.
21 //------------------------------------------------------------------------------ 23 //------------------------------------------------------------------------------
22 DnsMaster::DnsMaster(TimeDelta shutdown_wait_time) 24 DnsMaster::DnsMaster(TimeDelta shutdown_wait_time)
23 : slave_count_(0), 25 : slave_count_(0),
24 shutdown_(false), 26 shutdown_(false),
25 running_slave_count_(0), 27 running_slave_count_(0),
26 kShutdownWaitTime_(shutdown_wait_time), 28 kShutdownWaitTime_(shutdown_wait_time),
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 results_.clear(); 409 results_.clear();
408 // Put back in the names being worked on by slaves. 410 // Put back in the names being worked on by slaves.
409 for (Results::iterator it = assignees.begin(); assignees.end() != it; ++it) { 411 for (Results::iterator it = assignees.begin(); assignees.end() != it; ++it) {
410 DCHECK(it->second.is_marked_to_delete()); 412 DCHECK(it->second.is_marked_to_delete());
411 results_[it->first] = it->second; 413 results_[it->first] = it->second;
412 } 414 }
413 } 415 }
414 416
415 } // namespace chrome_browser_net 417 } // namespace chrome_browser_net
416 418
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698