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

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

Issue 299313002: Added .googleusercontent.com to the canonical_suffixes for alternate protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/http/http_server_properties_impl.h ('k') | no next file » | 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 #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 17 matching lines...) Expand all
28 28
29 HttpServerPropertiesImpl::HttpServerPropertiesImpl() 29 HttpServerPropertiesImpl::HttpServerPropertiesImpl()
30 : spdy_servers_map_(SpdyServerHostPortMap::NO_AUTO_EVICT), 30 : spdy_servers_map_(SpdyServerHostPortMap::NO_AUTO_EVICT),
31 alternate_protocol_map_(AlternateProtocolMap::NO_AUTO_EVICT), 31 alternate_protocol_map_(AlternateProtocolMap::NO_AUTO_EVICT),
32 spdy_settings_map_(SpdySettingsMap::NO_AUTO_EVICT), 32 spdy_settings_map_(SpdySettingsMap::NO_AUTO_EVICT),
33 pipeline_capability_map_( 33 pipeline_capability_map_(
34 new CachedPipelineCapabilityMap(kDefaultNumHostsToRemember)), 34 new CachedPipelineCapabilityMap(kDefaultNumHostsToRemember)),
35 weak_ptr_factory_(this) { 35 weak_ptr_factory_(this) {
36 canoncial_suffixes_.push_back(".c.youtube.com"); 36 canoncial_suffixes_.push_back(".c.youtube.com");
37 canoncial_suffixes_.push_back(".googlevideo.com"); 37 canoncial_suffixes_.push_back(".googlevideo.com");
38 canoncial_suffixes_.push_back(".googleusercontent.com");
38 } 39 }
39 40
40 HttpServerPropertiesImpl::~HttpServerPropertiesImpl() { 41 HttpServerPropertiesImpl::~HttpServerPropertiesImpl() {
41 } 42 }
42 43
43 void HttpServerPropertiesImpl::InitializeSpdyServers( 44 void HttpServerPropertiesImpl::InitializeSpdyServers(
44 std::vector<std::string>* spdy_servers, 45 std::vector<std::string>* spdy_servers,
45 bool support_spdy) { 46 bool support_spdy) {
46 DCHECK(CalledOnValidThread()); 47 DCHECK(CalledOnValidThread());
47 if (!spdy_servers) 48 if (!spdy_servers)
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 base::TimeDelta delay = when > now ? when - now : base::TimeDelta(); 480 base::TimeDelta delay = when > now ? when - now : base::TimeDelta();
480 base::MessageLoop::current()->PostDelayedTask( 481 base::MessageLoop::current()->PostDelayedTask(
481 FROM_HERE, 482 FROM_HERE,
482 base::Bind( 483 base::Bind(
483 &HttpServerPropertiesImpl::ExpireBrokenAlternateProtocolMappings, 484 &HttpServerPropertiesImpl::ExpireBrokenAlternateProtocolMappings,
484 weak_ptr_factory_.GetWeakPtr()), 485 weak_ptr_factory_.GetWeakPtr()),
485 delay); 486 delay);
486 } 487 }
487 488
488 } // namespace net 489 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_server_properties_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698