| 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 "android_webview/browser/aw_browser_context.h" | 5 #include "android_webview/browser/aw_browser_context.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/net/aw_url_request_context_getter.h" | 7 #include "android_webview/browser/net/aw_url_request_context_getter.h" |
| 8 | 8 |
| 9 namespace android_webview { | 9 namespace android_webview { |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 net::URLRequestContextGetter* | 37 net::URLRequestContextGetter* |
| 38 AwBrowserContext::GetRequestContextForRenderProcess( | 38 AwBrowserContext::GetRequestContextForRenderProcess( |
| 39 int renderer_child_id) { | 39 int renderer_child_id) { |
| 40 return GetRequestContext(); | 40 return GetRequestContext(); |
| 41 } | 41 } |
| 42 | 42 |
| 43 net::URLRequestContextGetter* | 43 net::URLRequestContextGetter* |
| 44 AwBrowserContext::GetRequestContextForStoragePartition( | 44 AwBrowserContext::GetRequestContextForStoragePartition( |
| 45 const std::string& partition_id) { | 45 const FilePath& partition_path, |
| 46 bool in_memory) { |
| 46 return GetRequestContext(); | 47 return GetRequestContext(); |
| 47 } | 48 } |
| 48 | 49 |
| 49 net::URLRequestContextGetter* AwBrowserContext::GetMediaRequestContext() { | 50 net::URLRequestContextGetter* AwBrowserContext::GetMediaRequestContext() { |
| 50 return GetRequestContext(); | 51 return GetRequestContext(); |
| 51 } | 52 } |
| 52 | 53 |
| 53 net::URLRequestContextGetter* | 54 net::URLRequestContextGetter* |
| 54 AwBrowserContext::GetMediaRequestContextForRenderProcess( | 55 AwBrowserContext::GetMediaRequestContextForRenderProcess( |
| 55 int renderer_child_id) { | 56 int renderer_child_id) { |
| 56 return GetRequestContext(); | 57 return GetRequestContext(); |
| 57 } | 58 } |
| 58 | 59 |
| 59 net::URLRequestContextGetter* | 60 net::URLRequestContextGetter* |
| 60 AwBrowserContext::GetMediaRequestContextForStoragePartition( | 61 AwBrowserContext::GetMediaRequestContextForStoragePartition( |
| 61 const std::string& partition_id) { | 62 const FilePath& partition_path, |
| 63 bool in_memory) { |
| 62 return GetRequestContext(); | 64 return GetRequestContext(); |
| 63 } | 65 } |
| 64 | 66 |
| 65 content::ResourceContext* AwBrowserContext::GetResourceContext() { | 67 content::ResourceContext* AwBrowserContext::GetResourceContext() { |
| 66 return url_request_context_getter_->GetResourceContext(); | 68 return url_request_context_getter_->GetResourceContext(); |
| 67 } | 69 } |
| 68 | 70 |
| 69 content::DownloadManagerDelegate* | 71 content::DownloadManagerDelegate* |
| 70 AwBrowserContext::GetDownloadManagerDelegate() { | 72 AwBrowserContext::GetDownloadManagerDelegate() { |
| 71 // TODO(boliu): Implement intercepting downloads for DownloadListener and | 73 // TODO(boliu): Implement intercepting downloads for DownloadListener and |
| (...skipping 16 matching lines...) Expand all Loading... |
| 88 return NULL; | 90 return NULL; |
| 89 } | 91 } |
| 90 | 92 |
| 91 quota::SpecialStoragePolicy* AwBrowserContext::GetSpecialStoragePolicy() { | 93 quota::SpecialStoragePolicy* AwBrowserContext::GetSpecialStoragePolicy() { |
| 92 // TODO(boliu): Implement this so we are not relying on default behavior. | 94 // TODO(boliu): Implement this so we are not relying on default behavior. |
| 93 NOTIMPLEMENTED(); | 95 NOTIMPLEMENTED(); |
| 94 return NULL; | 96 return NULL; |
| 95 } | 97 } |
| 96 | 98 |
| 97 } // namespace android_webview | 99 } // namespace android_webview |
| OLD | NEW |