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/test/test_browser_context.h" | 5 #include "content/test/test_browser_context.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "content/browser/in_process_webkit/webkit_context.h" | 8 #include "content/browser/in_process_webkit/webkit_context.h" |
9 #include "content/browser/mock_resource_context.h" | 9 #include "content/browser/mock_resource_context.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 net::URLRequestContextGetter* TestBrowserContext::GetRequestContextForMedia() { | 47 net::URLRequestContextGetter* TestBrowserContext::GetRequestContextForMedia() { |
48 return NULL; | 48 return NULL; |
49 } | 49 } |
50 | 50 |
51 content::ResourceContext* TestBrowserContext::GetResourceContext() { | 51 content::ResourceContext* TestBrowserContext::GetResourceContext() { |
52 if (!resource_context_.get()) | 52 if (!resource_context_.get()) |
53 resource_context_.reset(new content::MockResourceContext()); | 53 resource_context_.reset(new content::MockResourceContext()); |
54 return resource_context_.get(); | 54 return resource_context_.get(); |
55 } | 55 } |
56 | 56 |
57 HostZoomMap* TestBrowserContext::GetHostZoomMap() { | |
58 return NULL; | |
59 } | |
60 | |
61 content::GeolocationPermissionContext* | 57 content::GeolocationPermissionContext* |
62 TestBrowserContext::GetGeolocationPermissionContext() { | 58 TestBrowserContext::GetGeolocationPermissionContext() { |
63 return NULL; | 59 return NULL; |
64 } | 60 } |
65 | 61 |
66 content::SpeechInputPreferences* | 62 content::SpeechInputPreferences* |
67 TestBrowserContext::GetSpeechInputPreferences() { | 63 TestBrowserContext::GetSpeechInputPreferences() { |
68 return NULL; | 64 return NULL; |
69 } | 65 } |
70 | 66 |
71 bool TestBrowserContext::DidLastSessionExitCleanly() { | 67 bool TestBrowserContext::DidLastSessionExitCleanly() { |
72 return true; | 68 return true; |
73 } | 69 } |
74 | 70 |
75 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { | 71 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { |
76 return NULL; | 72 return NULL; |
77 } | 73 } |
OLD | NEW |