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/public/browser/content_browser_client.h" | 5 #include "content/public/browser/content_browser_client.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
9 #include "ui/gfx/image/image_skia.h" | 9 #include "ui/gfx/image/image_skia.h" |
10 | 10 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 153 |
154 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { | 154 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { |
155 return NULL; | 155 return NULL; |
156 } | 156 } |
157 | 157 |
158 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( | 158 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( |
159 const GURL& url, ResourceContext* context) { | 159 const GURL& url, ResourceContext* context) { |
160 return NULL; | 160 return NULL; |
161 } | 161 } |
162 | 162 |
163 std::string ContentBrowserClient::GetStoragePartitionIdForChildProcess( | |
164 BrowserContext* browser_context, | |
165 int child_process_id) { | |
166 return std::string(); | |
167 } | |
168 | |
169 std::string ContentBrowserClient::GetStoragePartitionIdForSite( | 163 std::string ContentBrowserClient::GetStoragePartitionIdForSite( |
170 BrowserContext* browser_context, | 164 BrowserContext* browser_context, |
171 const GURL& site) { | 165 const GURL& site) { |
172 return std::string(); | 166 return std::string(); |
173 } | 167 } |
174 | 168 |
175 bool ContentBrowserClient::IsValidStoragePartitionId( | 169 bool ContentBrowserClient::IsValidStoragePartitionId( |
176 BrowserContext* browser_context, | 170 BrowserContext* browser_context, |
177 const std::string& partition_id) { | 171 const std::string& partition_id) { |
178 // Since the GetStoragePartitionIdForChildProcess() only generates empty | 172 // Since the GetStoragePartitionIdForChildProcess() only generates empty |
179 // strings, we should only ever see empty strings coming back. | 173 // strings, we should only ever see empty strings coming back. |
180 return partition_id.empty(); | 174 return partition_id.empty(); |
181 } | 175 } |
182 | 176 |
| 177 void ContentBrowserClient::GetStoragePartitionConfigForSite( |
| 178 BrowserContext* browser_context, |
| 179 const GURL& site, |
| 180 std::string* partition_domain, |
| 181 std::string* partition_name, |
| 182 bool* in_memory) { |
| 183 *partition_domain = std::string(); |
| 184 *partition_name = std::string(); |
| 185 *in_memory = false; |
| 186 } |
| 187 |
183 MediaObserver* ContentBrowserClient::GetMediaObserver() { | 188 MediaObserver* ContentBrowserClient::GetMediaObserver() { |
184 return NULL; | 189 return NULL; |
185 } | 190 } |
186 | 191 |
187 WebKit::WebNotificationPresenter::Permission | 192 WebKit::WebNotificationPresenter::Permission |
188 ContentBrowserClient::CheckDesktopNotificationPermission( | 193 ContentBrowserClient::CheckDesktopNotificationPermission( |
189 const GURL& source_origin, | 194 const GURL& source_origin, |
190 ResourceContext* context, | 195 ResourceContext* context, |
191 int render_process_id) { | 196 int render_process_id) { |
192 return WebKit::WebNotificationPresenter::PermissionAllowed; | 197 return WebKit::WebNotificationPresenter::PermissionAllowed; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 #endif | 259 #endif |
255 | 260 |
256 #if defined(USE_NSS) | 261 #if defined(USE_NSS) |
257 crypto::CryptoModuleBlockingPasswordDelegate* | 262 crypto::CryptoModuleBlockingPasswordDelegate* |
258 ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 263 ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
259 return NULL; | 264 return NULL; |
260 } | 265 } |
261 #endif | 266 #endif |
262 | 267 |
263 } // namespace content | 268 } // namespace content |
OLD | NEW |