OLD | NEW |
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 "content/shell/shell_browser_context.h" | 5 #include "content/shell/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/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 return url_request_getter_; | 94 return url_request_getter_; |
95 } | 95 } |
96 | 96 |
97 net::URLRequestContextGetter* | 97 net::URLRequestContextGetter* |
98 ShellBrowserContext::GetRequestContextForRenderProcess( | 98 ShellBrowserContext::GetRequestContextForRenderProcess( |
99 int renderer_child_id) { | 99 int renderer_child_id) { |
100 return GetRequestContext(); | 100 return GetRequestContext(); |
101 } | 101 } |
102 | 102 |
103 net::URLRequestContextGetter* | 103 net::URLRequestContextGetter* |
104 ShellBrowserContext::GetRequestContextForMedia() { | 104 ShellBrowserContext::GetRequestContextForMedia( |
| 105 int renderer_child_id) { |
105 return GetRequestContext(); | 106 return GetRequestContext(); |
106 } | 107 } |
107 | 108 |
108 ResourceContext* ShellBrowserContext::GetResourceContext() { | 109 ResourceContext* ShellBrowserContext::GetResourceContext() { |
109 if (!resource_context_.get()) { | 110 if (!resource_context_.get()) { |
110 resource_context_.reset(new ShellResourceContext( | 111 resource_context_.reset(new ShellResourceContext( |
111 static_cast<ShellURLRequestContextGetter*>(GetRequestContext()))); | 112 static_cast<ShellURLRequestContextGetter*>(GetRequestContext()))); |
112 } | 113 } |
113 return resource_context_.get(); | 114 return resource_context_.get(); |
114 } | 115 } |
(...skipping 10 matching lines...) Expand all Loading... |
125 | 126 |
126 bool ShellBrowserContext::DidLastSessionExitCleanly() { | 127 bool ShellBrowserContext::DidLastSessionExitCleanly() { |
127 return true; | 128 return true; |
128 } | 129 } |
129 | 130 |
130 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 131 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
131 return NULL; | 132 return NULL; |
132 } | 133 } |
133 | 134 |
134 } // namespace content | 135 } // namespace content |
OLD | NEW |