| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "headless/lib/browser/headless_browser_context.h" | 5 #include "headless/lib/browser/headless_browser_context.h" |
| 6 | 6 |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 #include "content/public/browser/resource_context.h" | 9 #include "content/public/browser/resource_context.h" |
| 10 #include "content/public/browser/storage_partition.h" | 10 #include "content/public/browser/storage_partition.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 content::PermissionManager* HeadlessBrowserContext::GetPermissionManager() { | 150 content::PermissionManager* HeadlessBrowserContext::GetPermissionManager() { |
| 151 return nullptr; | 151 return nullptr; |
| 152 } | 152 } |
| 153 | 153 |
| 154 content::BackgroundSyncController* | 154 content::BackgroundSyncController* |
| 155 HeadlessBrowserContext::GetBackgroundSyncController() { | 155 HeadlessBrowserContext::GetBackgroundSyncController() { |
| 156 return nullptr; | 156 return nullptr; |
| 157 } | 157 } |
| 158 | 158 |
| 159 void HeadlessBrowserContext::SetOptionsForTesting( |
| 160 const HeadlessBrowser::Options& options) { |
| 161 options_ = options; |
| 162 } |
| 163 |
| 159 void HeadlessBrowserContext::SetURLRequestContextGetter( | 164 void HeadlessBrowserContext::SetURLRequestContextGetter( |
| 160 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter) { | 165 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter) { |
| 161 resource_context_->set_url_request_context_getter(url_request_context_getter); | 166 resource_context_->set_url_request_context_getter(url_request_context_getter); |
| 162 } | 167 } |
| 163 | 168 |
| 164 } // namespace headless | 169 } // namespace headless |
| OLD | NEW |