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

Side by Side Diff: headless/app/headless_shell.h

Issue 2835603002: Revert of Add --headless flag to Windows (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « headless/app/headless_example.cc ('k') | headless/app/headless_shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 void OnPDFCreated(std::unique_ptr<page::PrintToPDFResult> result); 80 void OnPDFCreated(std::unique_ptr<page::PrintToPDFResult> result);
81 81
82 void WriteFile(const std::string& switch_string, 82 void WriteFile(const std::string& switch_string,
83 const std::string& default_file_name, 83 const std::string& default_file_name,
84 const std::string& data); 84 const std::string& data);
85 void OnFileOpened(const std::string& data, 85 void OnFileOpened(const std::string& data,
86 const base::FilePath file_name, 86 const base::FilePath file_name,
87 base::File::Error error_code); 87 base::File::Error error_code);
88 void OnFileWritten(const base::FilePath file_name, 88 void OnFileWritten(const base::FilePath file_name,
89 const size_t length, 89 const int 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 HeadlessWebContents* web_contents_; 99 HeadlessWebContents* web_contents_;
100 bool processed_page_ready_; 100 bool processed_page_ready_;
101 std::unique_ptr<base::FileProxy> file_proxy_; 101 std::unique_ptr<base::FileProxy> file_proxy_;
102 HeadlessBrowserContext* browser_context_; 102 HeadlessBrowserContext* browser_context_;
103 std::unique_ptr<DeterministicDispatcher> deterministic_dispatcher_; 103 std::unique_ptr<DeterministicDispatcher> deterministic_dispatcher_;
104 base::WeakPtrFactory<HeadlessShell> weak_factory_; 104 base::WeakPtrFactory<HeadlessShell> weak_factory_;
105 105
106 DISALLOW_COPY_AND_ASSIGN(HeadlessShell); 106 DISALLOW_COPY_AND_ASSIGN(HeadlessShell);
107 }; 107 };
108 108
109 } // namespace headless 109 } // namespace headless
110 110
111 #endif // HEADLESS_APP_HEADLESS_SHELL_H_ 111 #endif // HEADLESS_APP_HEADLESS_SHELL_H_
OLDNEW
« no previous file with comments | « headless/app/headless_example.cc ('k') | headless/app/headless_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698