| OLD | NEW |
| 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 #include "chromecast/shell/browser/cast_browser_context.h" | 5 #include "chromecast/shell/browser/cast_browser_context.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 class CastBrowserContext::CastResourceContext : | 24 class CastBrowserContext::CastResourceContext : |
| 25 public content::ResourceContext { | 25 public content::ResourceContext { |
| 26 public: | 26 public: |
| 27 explicit CastResourceContext( | 27 explicit CastResourceContext( |
| 28 URLRequestContextFactory* url_request_context_factory) : | 28 URLRequestContextFactory* url_request_context_factory) : |
| 29 url_request_context_factory_(url_request_context_factory) {} | 29 url_request_context_factory_(url_request_context_factory) {} |
| 30 virtual ~CastResourceContext() {} | 30 virtual ~CastResourceContext() {} |
| 31 | 31 |
| 32 // ResourceContext implementation: | 32 // ResourceContext implementation: |
| 33 virtual net::HostResolver* GetHostResolver() OVERRIDE { | 33 virtual net::HostResolver* GetHostResolver() override { |
| 34 return url_request_context_factory_->GetMainGetter()-> | 34 return url_request_context_factory_->GetMainGetter()-> |
| 35 GetURLRequestContext()->host_resolver(); | 35 GetURLRequestContext()->host_resolver(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 virtual net::URLRequestContext* GetRequestContext() OVERRIDE { | 38 virtual net::URLRequestContext* GetRequestContext() override { |
| 39 return url_request_context_factory_->GetMainGetter()-> | 39 return url_request_context_factory_->GetMainGetter()-> |
| 40 GetURLRequestContext(); | 40 GetURLRequestContext(); |
| 41 } | 41 } |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 URLRequestContextFactory* url_request_context_factory_; | 44 URLRequestContextFactory* url_request_context_factory_; |
| 45 | 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(CastResourceContext); | 46 DISALLOW_COPY_AND_ASSIGN(CastResourceContext); |
| 47 }; | 47 }; |
| 48 | 48 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 return NULL; | 134 return NULL; |
| 135 } | 135 } |
| 136 | 136 |
| 137 content::SSLHostStateDelegate* CastBrowserContext::GetSSLHostStateDelegate() { | 137 content::SSLHostStateDelegate* CastBrowserContext::GetSSLHostStateDelegate() { |
| 138 NOTIMPLEMENTED(); | 138 NOTIMPLEMENTED(); |
| 139 return NULL; | 139 return NULL; |
| 140 } | 140 } |
| 141 | 141 |
| 142 } // namespace shell | 142 } // namespace shell |
| 143 } // namespace chromecast | 143 } // namespace chromecast |
| OLD | NEW |