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

Side by Side Diff: chromecast/browser/url_request_context_factory.h

Issue 785693002: Adds DNS prefetch support to Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefetch-browser
Patch Set: Created 6 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ 5 #ifndef CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_
6 #define CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ 6 #define CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_
7 7
8 #include "content/public/browser/content_browser_client.h" 8 #include "content/public/browser/content_browser_client.h"
9 #include "net/http/http_network_session.h" 9 #include "net/http/http_network_session.h"
10 10
(...skipping 30 matching lines...) Expand all
41 content::BrowserContext* browser_context, 41 content::BrowserContext* browser_context,
42 content::ProtocolHandlerMap* protocol_handlers, 42 content::ProtocolHandlerMap* protocol_handlers,
43 content::URLRequestInterceptorScopedVector request_interceptors); 43 content::URLRequestInterceptorScopedVector request_interceptors);
44 net::URLRequestContextGetter* GetMainGetter(); 44 net::URLRequestContextGetter* GetMainGetter();
45 net::URLRequestContextGetter* GetMediaGetter(); 45 net::URLRequestContextGetter* GetMediaGetter();
46 46
47 CastNetworkDelegate* app_network_delegate() const { 47 CastNetworkDelegate* app_network_delegate() const {
48 return app_network_delegate_.get(); 48 return app_network_delegate_.get();
49 } 49 }
50 50
51 net::HostResolver* host_resolver() const {
52 return host_resolver_.get();
53 }
54
51 // Initialize the CastNetworkDelegate objects. This needs to be done 55 // Initialize the CastNetworkDelegate objects. This needs to be done
52 // after the CastService is created, but before any URL requests are made. 56 // after the CastService is created, but before any URL requests are made.
53 void InitializeNetworkDelegates(); 57 void InitializeNetworkDelegates();
54 58
55 private: 59 private:
56 class URLRequestContextGetter; 60 class URLRequestContextGetter;
57 class MainURLRequestContextGetter; 61 class MainURLRequestContextGetter;
58 friend class URLRequestContextGetter; 62 friend class URLRequestContextGetter;
59 friend class MainURLRequestContextGetter; 63 friend class MainURLRequestContextGetter;
60 64
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 scoped_ptr<net::URLRequestJobFactory> main_job_factory_; 112 scoped_ptr<net::URLRequestJobFactory> main_job_factory_;
109 113
110 bool media_dependencies_initialized_; 114 bool media_dependencies_initialized_;
111 scoped_ptr<net::HttpTransactionFactory> media_transaction_factory_; 115 scoped_ptr<net::HttpTransactionFactory> media_transaction_factory_;
112 }; 116 };
113 117
114 } // namespace shell 118 } // namespace shell
115 } // namespace chromecast 119 } // namespace chromecast
116 120
117 #endif // CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ 121 #endif // CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698