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 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_ | 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_ |
6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_ | 6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <unordered_map> | 10 #include <unordered_map> |
(...skipping 24 matching lines...) Expand all Loading... |
35 static std::unique_ptr<HeadlessBrowserContextImpl> Create( | 35 static std::unique_ptr<HeadlessBrowserContextImpl> Create( |
36 HeadlessBrowserContext::Builder* builder); | 36 HeadlessBrowserContext::Builder* builder); |
37 | 37 |
38 // HeadlessBrowserContext implementation: | 38 // HeadlessBrowserContext implementation: |
39 HeadlessWebContents::Builder CreateWebContentsBuilder() override; | 39 HeadlessWebContents::Builder CreateWebContentsBuilder() override; |
40 std::vector<HeadlessWebContents*> GetAllWebContents() override; | 40 std::vector<HeadlessWebContents*> GetAllWebContents() override; |
41 HeadlessWebContents* GetWebContentsForDevToolsAgentHostId( | 41 HeadlessWebContents* GetWebContentsForDevToolsAgentHostId( |
42 const std::string& devtools_agent_host_id) override; | 42 const std::string& devtools_agent_host_id) override; |
43 void Close() override; | 43 void Close() override; |
44 const std::string& Id() const override; | 44 const std::string& Id() const override; |
| 45 net::URLRequestContext* GetRequestContext() const override; |
45 | 46 |
46 // BrowserContext implementation: | 47 // BrowserContext implementation: |
47 std::unique_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( | 48 std::unique_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( |
48 const base::FilePath& partition_path) override; | 49 const base::FilePath& partition_path) override; |
49 base::FilePath GetPath() const override; | 50 base::FilePath GetPath() const override; |
50 bool IsOffTheRecord() const override; | 51 bool IsOffTheRecord() const override; |
51 content::ResourceContext* GetResourceContext() override; | 52 content::ResourceContext* GetResourceContext() override; |
52 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; | 53 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
53 content::BrowserPluginGuestManager* GetGuestManager() override; | 54 content::BrowserPluginGuestManager* GetGuestManager() override; |
54 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; | 55 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 web_contents_map_; | 98 web_contents_map_; |
98 | 99 |
99 std::string id_; | 100 std::string id_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContextImpl); | 102 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContextImpl); |
102 }; | 103 }; |
103 | 104 |
104 } // namespace headless | 105 } // namespace headless |
105 | 106 |
106 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_ | 107 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_ |
OLD | NEW |