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

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

Issue 312193005: Pass chrome version and channel in CHLO message to server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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) 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698