| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/test/test_browser_context.h" |
| 6 |
| 7 #include "base/file_path.h" |
| 8 #include "content/browser/mock_resource_context.h" |
| 9 |
| 10 TestBrowserContext::TestBrowserContext() { |
| 11 } |
| 12 |
| 13 TestBrowserContext::~TestBrowserContext() { |
| 14 } |
| 15 |
| 16 FilePath TestBrowserContext::GetPath() { |
| 17 return FilePath(); |
| 18 } |
| 19 |
| 20 bool TestBrowserContext::IsOffTheRecord() { |
| 21 return false; |
| 22 } |
| 23 |
| 24 webkit_database::DatabaseTracker* TestBrowserContext::GetDatabaseTracker() { |
| 25 return NULL; |
| 26 } |
| 27 |
| 28 SSLHostState* TestBrowserContext::GetSSLHostState() { |
| 29 return NULL; |
| 30 } |
| 31 |
| 32 DownloadManager* TestBrowserContext::GetDownloadManager() { |
| 33 return NULL; |
| 34 } |
| 35 |
| 36 bool TestBrowserContext::HasCreatedDownloadManager() const { |
| 37 return false; |
| 38 } |
| 39 |
| 40 quota::QuotaManager* TestBrowserContext::GetQuotaManager() { |
| 41 return NULL; |
| 42 } |
| 43 |
| 44 net::URLRequestContextGetter* TestBrowserContext::GetRequestContext() { |
| 45 return NULL; |
| 46 } |
| 47 |
| 48 net::URLRequestContextGetter* |
| 49 TestBrowserContext::GetRequestContextForRenderProcess(int renderer_child_id) { |
| 50 return NULL; |
| 51 } |
| 52 |
| 53 net::URLRequestContextGetter* TestBrowserContext::GetRequestContextForMedia() { |
| 54 return NULL; |
| 55 } |
| 56 |
| 57 const content::ResourceContext& TestBrowserContext::GetResourceContext() { |
| 58 // TODO(phajdan.jr): Get rid of this nasty global. |
| 59 return *content::MockResourceContext::GetInstance(); |
| 60 } |
| 61 |
| 62 HostZoomMap* TestBrowserContext::GetHostZoomMap() { |
| 63 return NULL; |
| 64 } |
| 65 |
| 66 GeolocationPermissionContext* |
| 67 TestBrowserContext::GetGeolocationPermissionContext() { |
| 68 return NULL; |
| 69 } |
| 70 |
| 71 bool TestBrowserContext::DidLastSessionExitCleanly() { |
| 72 return true; |
| 73 } |
| 74 |
| 75 WebKitContext* TestBrowserContext::GetWebKitContext() { |
| 76 return NULL; |
| 77 } |
| 78 |
| 79 ChromeBlobStorageContext* TestBrowserContext::GetBlobStorageContext() { |
| 80 return NULL; |
| 81 } |
| OLD | NEW |