| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void InitWhileIOAllowed(); | 91 void InitWhileIOAllowed(); |
| 92 | 92 |
| 93 HeadlessBrowserImpl* browser_; // Not owned. | 93 HeadlessBrowserImpl* browser_; // Not owned. |
| 94 std::unique_ptr<HeadlessBrowserContextOptions> context_options_; | 94 std::unique_ptr<HeadlessBrowserContextOptions> context_options_; |
| 95 std::unique_ptr<HeadlessResourceContext> resource_context_; | 95 std::unique_ptr<HeadlessResourceContext> resource_context_; |
| 96 base::FilePath path_; | 96 base::FilePath path_; |
| 97 | 97 |
| 98 std::unordered_map<std::string, std::unique_ptr<HeadlessWebContents>> | 98 std::unordered_map<std::string, std::unique_ptr<HeadlessWebContents>> |
| 99 web_contents_map_; | 99 web_contents_map_; |
| 100 | 100 |
| 101 std::unique_ptr<content::PermissionManager> permission_manager_; |
| 102 |
| 101 std::string id_; | 103 std::string id_; |
| 102 | 104 |
| 103 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContextImpl); | 105 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContextImpl); |
| 104 }; | 106 }; |
| 105 | 107 |
| 106 } // namespace headless | 108 } // namespace headless |
| 107 | 109 |
| 108 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_ | 110 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_ |
| OLD | NEW |