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

Unified Diff: headless/app/headless_shell.h

Issue 2666503002: Make headless_shell target compile for Windows (Closed)
Patch Set: Fix initlogging placing, always enable logging in Windows Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/BUILD.gn ('k') | headless/app/headless_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/app/headless_shell.h
diff --git a/headless/app/headless_shell.h b/headless/app/headless_shell.h
index acb2fd47a4c11a3b4f6accf45403283a36c53b18..70c5936d81815f080485d9fe5cee18b308da89b3 100644
--- a/headless/app/headless_shell.h
+++ b/headless/app/headless_shell.h
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/files/file_proxy.h"
#include "base/memory/weak_ptr.h"
#include "headless/app/shell_navigation_request.h"
#include "headless/public/devtools/domains/emulation.h"
@@ -65,13 +66,14 @@ class HeadlessShell : public HeadlessWebContents::Observer,
void OnScreenshotFileOpened(
std::unique_ptr<page::CaptureScreenshotResult> result,
const base::FilePath file_name,
- const int open_result);
+ base::File::Error error_code);
void OnScreenshotFileWritten(const base::FilePath file_name,
const int length,
- const int write_result);
+ base::File::Error error_code,
+ int write_result);
- void OnScreenshotFileClosed(const int close_result);
+ void OnScreenshotFileClosed(base::File::Error error_code);
bool RemoteDebuggingEnabled() const;
@@ -85,7 +87,7 @@ class HeadlessShell : public HeadlessWebContents::Observer,
std::unique_ptr<HeadlessDevToolsClient> devtools_client_;
HeadlessWebContents* web_contents_;
bool processed_page_ready_;
- std::unique_ptr<net::FileStream> screenshot_file_stream_;
+ std::unique_ptr<base::FileProxy> screenshot_file_proxy_;
HeadlessBrowserContext* browser_context_;
std::unique_ptr<DeterministicDispatcher> deterministic_dispatcher_;
base::WeakPtrFactory<HeadlessShell> weak_factory_;
« no previous file with comments | « headless/BUILD.gn ('k') | headless/app/headless_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698