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

Side by Side Diff: chrome/browser/net/predictor.cc

Issue 778463002: Wrapped data reduction proxy initialization into its own class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@network-delegate
Patch Set: Updated test Created 5 years, 11 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
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 "chrome/browser/net/predictor.h" 5 #include "chrome/browser/net/predictor.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <set> 9 #include <set>
10 #include <sstream> 10 #include <sstream>
(...skipping 25 matching lines...) Expand all
36 #include "content/public/browser/browser_thread.h" 36 #include "content/public/browser/browser_thread.h"
37 #include "net/base/address_list.h" 37 #include "net/base/address_list.h"
38 #include "net/base/completion_callback.h" 38 #include "net/base/completion_callback.h"
39 #include "net/base/host_port_pair.h" 39 #include "net/base/host_port_pair.h"
40 #include "net/base/load_flags.h" 40 #include "net/base/load_flags.h"
41 #include "net/base/net_errors.h" 41 #include "net/base/net_errors.h"
42 #include "net/base/net_log.h" 42 #include "net/base/net_log.h"
43 #include "net/dns/host_resolver.h" 43 #include "net/dns/host_resolver.h"
44 #include "net/dns/single_request_host_resolver.h" 44 #include "net/dns/single_request_host_resolver.h"
45 #include "net/http/transport_security_state.h" 45 #include "net/http/transport_security_state.h"
46 #include "net/proxy/proxy_info.h"
47 #include "net/proxy/proxy_service.h"
46 #include "net/ssl/ssl_config_service.h" 48 #include "net/ssl/ssl_config_service.h"
47 #include "net/url_request/url_request_context.h" 49 #include "net/url_request/url_request_context.h"
48 #include "net/url_request/url_request_context_getter.h" 50 #include "net/url_request/url_request_context_getter.h"
49 51
50 using base::TimeDelta; 52 using base::TimeDelta;
51 using content::BrowserThread; 53 using content::BrowserThread;
52 54
53 namespace chrome_browser_net { 55 namespace chrome_browser_net {
54 56
55 // static 57 // static
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 } 1376 }
1375 1377
1376 void SimplePredictor::ShutdownOnUIThread() { 1378 void SimplePredictor::ShutdownOnUIThread() {
1377 SetShutdown(true); 1379 SetShutdown(true);
1378 } 1380 }
1379 1381
1380 bool SimplePredictor::CanPrefetchAndPrerender() const { return true; } 1382 bool SimplePredictor::CanPrefetchAndPrerender() const { return true; }
1381 bool SimplePredictor::CanPreresolveAndPreconnect() const { return true; } 1383 bool SimplePredictor::CanPreresolveAndPreconnect() const { return true; }
1382 1384
1383 } // namespace chrome_browser_net 1385 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698