OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 5 |
6 //------------------------------------------------------------------------------ | 6 //------------------------------------------------------------------------------ |
7 // Description of the life cycle of a instance of MetricsService. | 7 // Description of the life cycle of a instance of MetricsService. |
8 // | 8 // |
9 // OVERVIEW | 9 // OVERVIEW |
10 // | 10 // |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 http_transaction_factory_ = new net::HttpCache( | 177 http_transaction_factory_ = new net::HttpCache( |
178 net::HttpNetworkLayer::CreateFactory(host_resolver_, | 178 net::HttpNetworkLayer::CreateFactory(host_resolver_, |
179 NULL /* dnsrr_resovler */, | 179 NULL /* dnsrr_resovler */, |
180 NULL /* dns_cert_checker*/, | 180 NULL /* dns_cert_checker*/, |
181 NULL /* ssl_host_info */, | 181 NULL /* ssl_host_info */, |
182 proxy_service_, | 182 proxy_service_, |
183 ssl_config_service_, | 183 ssl_config_service_, |
184 http_auth_handler_factory_, | 184 http_auth_handler_factory_, |
185 network_delegate_, | 185 network_delegate_, |
186 NULL), | 186 NULL), |
| 187 NULL /* net_log */, |
187 net::HttpCache::DefaultBackend::InMemory(0)); | 188 net::HttpCache::DefaultBackend::InMemory(0)); |
188 } | 189 } |
189 | 190 |
190 virtual const std::string& GetUserAgent(const GURL& url) const { | 191 virtual const std::string& GetUserAgent(const GURL& url) const { |
191 return user_agent_; | 192 return user_agent_; |
192 } | 193 } |
193 | 194 |
194 private: | 195 private: |
195 std::string user_agent_; | 196 std::string user_agent_; |
196 MessageLoop* io_loop_; | 197 MessageLoop* io_loop_; |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 version += "-F"; | 605 version += "-F"; |
605 if (!version_info.IsOfficialBuild()) | 606 if (!version_info.IsOfficialBuild()) |
606 version.append("-devel"); | 607 version.append("-devel"); |
607 return version; | 608 return version; |
608 } else { | 609 } else { |
609 NOTREACHED() << "Unable to retrieve version string."; | 610 NOTREACHED() << "Unable to retrieve version string."; |
610 } | 611 } |
611 | 612 |
612 return std::string(); | 613 return std::string(); |
613 } | 614 } |
OLD | NEW |