| OLD | NEW |
| 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 "net/http/http_server_properties_impl.h" | 5 #include "net/http/http_server_properties_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 base::TimeTicks when = broken_alternate_protocol_list_.front().when; | 443 base::TimeTicks when = broken_alternate_protocol_list_.front().when; |
| 444 base::TimeDelta delay = when > now ? when - now : base::TimeDelta(); | 444 base::TimeDelta delay = when > now ? when - now : base::TimeDelta(); |
| 445 base::MessageLoop::current()->PostDelayedTask( | 445 base::MessageLoop::current()->PostDelayedTask( |
| 446 FROM_HERE, | 446 FROM_HERE, |
| 447 base::Bind( | 447 base::Bind( |
| 448 &HttpServerPropertiesImpl::ExpireBrokenAlternateProtocolMappings, | 448 &HttpServerPropertiesImpl::ExpireBrokenAlternateProtocolMappings, |
| 449 weak_ptr_factory_.GetWeakPtr()), | 449 weak_ptr_factory_.GetWeakPtr()), |
| 450 delay); | 450 delay); |
| 451 } | 451 } |
| 452 | 452 |
| 453 void HttpServerPropertiesImpl::SetClientVersion( |
| 454 const std::string& client_version) { |
| 455 client_version_ = client_version; |
| 456 } |
| 457 |
| 458 const std::string HttpServerPropertiesImpl::GetClientVersion() const { |
| 459 return client_version_; |
| 460 } |
| 461 |
| 453 } // namespace net | 462 } // namespace net |
| OLD | NEW |