Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: headless/lib/browser/headless_browser_context.cc

Issue 1781193004: headless: Make it possible to configure an HTTP proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « headless/lib/browser/headless_browser_context.h ('k') | headless/lib/browser/headless_browser_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698