| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_APP_HEADLESS_SHELL_H_ | 5 #ifndef HEADLESS_APP_HEADLESS_SHELL_H_ |
| 6 #define HEADLESS_APP_HEADLESS_SHELL_H_ | 6 #define HEADLESS_APP_HEADLESS_SHELL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 const size_t length, | 89 const size_t length, |
| 90 base::File::Error error_code, | 90 base::File::Error error_code, |
| 91 int write_result); | 91 int write_result); |
| 92 void OnFileClosed(base::File::Error error_code); | 92 void OnFileClosed(base::File::Error error_code); |
| 93 | 93 |
| 94 bool RemoteDebuggingEnabled() const; | 94 bool RemoteDebuggingEnabled() const; |
| 95 | 95 |
| 96 GURL url_; | 96 GURL url_; |
| 97 HeadlessBrowser* browser_; // Not owned. | 97 HeadlessBrowser* browser_; // Not owned. |
| 98 std::unique_ptr<HeadlessDevToolsClient> devtools_client_; | 98 std::unique_ptr<HeadlessDevToolsClient> devtools_client_; |
| 99 #if !defined(CHROME_MULTIPLE_DLL_CHILD) |
| 99 HeadlessWebContents* web_contents_; | 100 HeadlessWebContents* web_contents_; |
| 101 HeadlessBrowserContext* browser_context_; |
| 102 #endif |
| 100 bool processed_page_ready_; | 103 bool processed_page_ready_; |
| 101 std::unique_ptr<base::FileProxy> file_proxy_; | 104 std::unique_ptr<base::FileProxy> file_proxy_; |
| 102 HeadlessBrowserContext* browser_context_; | |
| 103 std::unique_ptr<DeterministicDispatcher> deterministic_dispatcher_; | 105 std::unique_ptr<DeterministicDispatcher> deterministic_dispatcher_; |
| 104 base::WeakPtrFactory<HeadlessShell> weak_factory_; | 106 base::WeakPtrFactory<HeadlessShell> weak_factory_; |
| 105 | 107 |
| 106 DISALLOW_COPY_AND_ASSIGN(HeadlessShell); | 108 DISALLOW_COPY_AND_ASSIGN(HeadlessShell); |
| 107 }; | 109 }; |
| 108 | 110 |
| 109 } // namespace headless | 111 } // namespace headless |
| 110 | 112 |
| 111 #endif // HEADLESS_APP_HEADLESS_SHELL_H_ | 113 #endif // HEADLESS_APP_HEADLESS_SHELL_H_ |
| OLD | NEW |