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::GetDefaultRequestContextForMedia() { |
105 return GetRequestContext(); | 105 return GetRequestContext(); |
106 } | 106 } |
107 | 107 |
| 108 net::URLRequestContextGetter* |
| 109 ShellBrowserContext::GetRequestContextForMedia( |
| 110 int renderer_child_id) { |
| 111 return GetRequestContext(); |
| 112 } |
| 113 |
108 ResourceContext* ShellBrowserContext::GetResourceContext() { | 114 ResourceContext* ShellBrowserContext::GetResourceContext() { |
109 if (!resource_context_.get()) { | 115 if (!resource_context_.get()) { |
110 resource_context_.reset(new ShellResourceContext( | 116 resource_context_.reset(new ShellResourceContext( |
111 static_cast<ShellURLRequestContextGetter*>(GetRequestContext()))); | 117 static_cast<ShellURLRequestContextGetter*>(GetRequestContext()))); |
112 } | 118 } |
113 return resource_context_.get(); | 119 return resource_context_.get(); |
114 } | 120 } |
115 | 121 |
116 GeolocationPermissionContext* | 122 GeolocationPermissionContext* |
117 ShellBrowserContext::GetGeolocationPermissionContext() { | 123 ShellBrowserContext::GetGeolocationPermissionContext() { |
118 return NULL; | 124 return NULL; |
119 } | 125 } |
120 | 126 |
121 SpeechRecognitionPreferences* | 127 SpeechRecognitionPreferences* |
122 ShellBrowserContext::GetSpeechRecognitionPreferences() { | 128 ShellBrowserContext::GetSpeechRecognitionPreferences() { |
123 return NULL; | 129 return NULL; |
124 } | 130 } |
125 | 131 |
126 bool ShellBrowserContext::DidLastSessionExitCleanly() { | 132 bool ShellBrowserContext::DidLastSessionExitCleanly() { |
127 return true; | 133 return true; |
128 } | 134 } |
129 | 135 |
130 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 136 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
131 return NULL; | 137 return NULL; |
132 } | 138 } |
133 | 139 |
134 } // namespace content | 140 } // namespace content |
OLD | NEW |