OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/shell/browser/shell_browser_context.h" | 5 #include "content/shell/browser/shell_browser_context.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #endif | 28 #endif |
29 | 29 |
30 namespace content { | 30 namespace content { |
31 | 31 |
32 class ShellBrowserContext::ShellResourceContext : public ResourceContext { | 32 class ShellBrowserContext::ShellResourceContext : public ResourceContext { |
33 public: | 33 public: |
34 ShellResourceContext() : getter_(NULL) {} | 34 ShellResourceContext() : getter_(NULL) {} |
35 virtual ~ShellResourceContext() {} | 35 virtual ~ShellResourceContext() {} |
36 | 36 |
37 // ResourceContext implementation: | 37 // ResourceContext implementation: |
38 virtual net::HostResolver* GetHostResolver() OVERRIDE { | 38 virtual net::HostResolver* GetHostResolver() override { |
39 CHECK(getter_); | 39 CHECK(getter_); |
40 return getter_->host_resolver(); | 40 return getter_->host_resolver(); |
41 } | 41 } |
42 virtual net::URLRequestContext* GetRequestContext() OVERRIDE { | 42 virtual net::URLRequestContext* GetRequestContext() override { |
43 CHECK(getter_); | 43 CHECK(getter_); |
44 return getter_->GetURLRequestContext(); | 44 return getter_->GetURLRequestContext(); |
45 } | 45 } |
46 | 46 |
47 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) { | 47 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) { |
48 getter_ = getter; | 48 getter_ = getter; |
49 } | 49 } |
50 | 50 |
51 private: | 51 private: |
52 ShellURLRequestContextGetter* getter_; | 52 ShellURLRequestContextGetter* getter_; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 196 |
197 PushMessagingService* ShellBrowserContext::GetPushMessagingService() { | 197 PushMessagingService* ShellBrowserContext::GetPushMessagingService() { |
198 return NULL; | 198 return NULL; |
199 } | 199 } |
200 | 200 |
201 SSLHostStateDelegate* ShellBrowserContext::GetSSLHostStateDelegate() { | 201 SSLHostStateDelegate* ShellBrowserContext::GetSSLHostStateDelegate() { |
202 return NULL; | 202 return NULL; |
203 } | 203 } |
204 | 204 |
205 } // namespace content | 205 } // namespace content |
OLD | NEW |