| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/string_split.h" | 10 #include "base/string_split.h" |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 310 |
| 311 GeolocationPermissionContext* | 311 GeolocationPermissionContext* |
| 312 ShellBrowserContext::GetGeolocationPermissionContext() { | 312 ShellBrowserContext::GetGeolocationPermissionContext() { |
| 313 if (!geolocation_permission_context_) { | 313 if (!geolocation_permission_context_) { |
| 314 geolocation_permission_context_ = | 314 geolocation_permission_context_ = |
| 315 new ShellGeolocationPermissionContext(); | 315 new ShellGeolocationPermissionContext(); |
| 316 } | 316 } |
| 317 return geolocation_permission_context_; | 317 return geolocation_permission_context_; |
| 318 } | 318 } |
| 319 | 319 |
| 320 bool ShellBrowserContext::GetSpeechCensorPref() { |
| 321 return true; |
| 322 } |
| 323 |
| 320 bool ShellBrowserContext::DidLastSessionExitCleanly() { | 324 bool ShellBrowserContext::DidLastSessionExitCleanly() { |
| 321 return true; | 325 return true; |
| 322 } | 326 } |
| 323 | 327 |
| 324 quota::QuotaManager* ShellBrowserContext::GetQuotaManager() { | 328 quota::QuotaManager* ShellBrowserContext::GetQuotaManager() { |
| 325 CreateQuotaManagerAndClients(); | 329 CreateQuotaManagerAndClients(); |
| 326 return quota_manager_.get(); | 330 return quota_manager_.get(); |
| 327 } | 331 } |
| 328 | 332 |
| 329 WebKitContext* ShellBrowserContext::GetWebKitContext() { | 333 WebKitContext* ShellBrowserContext::GetWebKitContext() { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 NewRunnableMethod( | 385 NewRunnableMethod( |
| 382 appcache_service_.get(), | 386 appcache_service_.get(), |
| 383 &ChromeAppCacheService::InitializeOnIOThread, | 387 &ChromeAppCacheService::InitializeOnIOThread, |
| 384 IsOffTheRecord() | 388 IsOffTheRecord() |
| 385 ? FilePath() : GetPath().Append(FILE_PATH_LITERAL("AppCache")), | 389 ? FilePath() : GetPath().Append(FILE_PATH_LITERAL("AppCache")), |
| 386 &GetResourceContext(), | 390 &GetResourceContext(), |
| 387 special_storage_policy)); | 391 special_storage_policy)); |
| 388 } | 392 } |
| 389 | 393 |
| 390 } // namespace content | 394 } // namespace content |
| OLD | NEW |