| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 net::HttpNetworkLayer::CreateFactory(host_resolver_, | 183 net::HttpNetworkLayer::CreateFactory(host_resolver_, |
| 184 cert_verifier_, | 184 cert_verifier_, |
| 185 NULL /* dnsrr_resovler */, | 185 NULL /* dnsrr_resovler */, |
| 186 NULL /* dns_cert_checker*/, | 186 NULL /* dns_cert_checker*/, |
| 187 NULL /* ssl_host_info */, | 187 NULL /* ssl_host_info */, |
| 188 proxy_service_, | 188 proxy_service_, |
| 189 ssl_config_service_, | 189 ssl_config_service_, |
| 190 http_auth_handler_factory_, | 190 http_auth_handler_factory_, |
| 191 network_delegate_, | 191 network_delegate_, |
| 192 NULL), | 192 NULL), |
| 193 NULL /* net_log */, | |
| 194 net::HttpCache::DefaultBackend::InMemory(0)); | 193 net::HttpCache::DefaultBackend::InMemory(0)); |
| 195 } | 194 } |
| 196 | 195 |
| 197 virtual const std::string& GetUserAgent(const GURL& url) const { | 196 virtual const std::string& GetUserAgent(const GURL& url) const { |
| 198 return user_agent_; | 197 return user_agent_; |
| 199 } | 198 } |
| 200 | 199 |
| 201 private: | 200 private: |
| 202 std::string user_agent_; | 201 std::string user_agent_; |
| 203 MessageLoop* io_loop_; | 202 MessageLoop* io_loop_; |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 version += "-F"; | 615 version += "-F"; |
| 617 if (!version_info.IsOfficialBuild()) | 616 if (!version_info.IsOfficialBuild()) |
| 618 version.append("-devel"); | 617 version.append("-devel"); |
| 619 return version; | 618 return version; |
| 620 } else { | 619 } else { |
| 621 NOTREACHED() << "Unable to retrieve version string."; | 620 NOTREACHED() << "Unable to retrieve version string."; |
| 622 } | 621 } |
| 623 | 622 |
| 624 return std::string(); | 623 return std::string(); |
| 625 } | 624 } |
| OLD | NEW |