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

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

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 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_H_ 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_H_
6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_H_ 6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "content/public/browser/browser_context.h" 9 #include "content/public/browser/browser_context.h"
10 #include "content/public/browser/content_browser_client.h" 10 #include "content/public/browser/content_browser_client.h"
(...skipping 26 matching lines...) Expand all
37 content::ResourceContext* GetResourceContext() override; 37 content::ResourceContext* GetResourceContext() override;
38 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; 38 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
39 content::BrowserPluginGuestManager* GetGuestManager() override; 39 content::BrowserPluginGuestManager* GetGuestManager() override;
40 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 40 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
41 content::PushMessagingService* GetPushMessagingService() override; 41 content::PushMessagingService* GetPushMessagingService() override;
42 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; 42 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override;
43 content::PermissionManager* GetPermissionManager() override; 43 content::PermissionManager* GetPermissionManager() override;
44 content::BackgroundSyncController* GetBackgroundSyncController() override; 44 content::BackgroundSyncController* GetBackgroundSyncController() override;
45 45
46 const HeadlessBrowser::Options& options() const { return options_; } 46 const HeadlessBrowser::Options& options() const { return options_; }
47 void SetOptionsForTesting(const HeadlessBrowser::Options& options);
47 48
48 // Configure the URL request context getter to be used for serving URL 49 // Configure the URL request context getter to be used for serving URL
49 // requests in this browser instance. 50 // requests in this browser instance.
50 void SetURLRequestContextGetter( 51 void SetURLRequestContextGetter(
51 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter); 52 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter);
52 53
53 private: 54 private:
54 // Performs initialization of the HeadlessBrowserContext while IO is still 55 // Performs initialization of the HeadlessBrowserContext while IO is still
55 // allowed on the current thread. 56 // allowed on the current thread.
56 void InitWhileIOAllowed(); 57 void InitWhileIOAllowed();
57 58
58 base::FilePath path_; 59 base::FilePath path_;
59 scoped_ptr<HeadlessResourceContext> resource_context_; 60 scoped_ptr<HeadlessResourceContext> resource_context_;
60 HeadlessBrowser::Options options_; 61 HeadlessBrowser::Options options_;
61 62
62 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContext); 63 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContext);
63 }; 64 };
64 65
65 } // namespace headless 66 } // namespace headless
66 67
67 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_H_ 68 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « headless/app/headless_shell_switches.cc ('k') | headless/lib/browser/headless_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698