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

Unified Diff: net/tools/dump_cache/upgrade_win.h

Issue 11299239: Adding a simple class for dumping the contents of a cache. Use this new class in dump_cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 1 month 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 | « net/tools/dump_cache/upgrade.cc ('k') | net/tools/dump_cache/upgrade_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/dump_cache/upgrade_win.h
diff --git a/net/tools/dump_cache/upgrade_win.h b/net/tools/dump_cache/upgrade_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..3384707a3100b309cf136d60b286c1941312e5b4
--- /dev/null
+++ b/net/tools/dump_cache/upgrade_win.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include <windows.h>
+
+#include "base/command_line.h"
+#include "base/file_path.h"
+
+// Creates a new server, and returns a new named pipe to communicate with it.
+HANDLE CreateServer(std::wstring* pipe_number);
+
+// This is the controller process for an upgrade operation.
+int CopyCache(const FilePath& output_path, HANDLE pipe, bool copy_to_text);
+
+// This process will only execute commands from the controller.
+int RunSlave(const FilePath& input_path, const std::wstring& pipe_number);
+
+// Starts a new process, to generate the files.
+int LaunchSlave(CommandLine command_line,
+ const std::wstring& pipe_number,
+ int version);
« no previous file with comments | « net/tools/dump_cache/upgrade.cc ('k') | net/tools/dump_cache/upgrade_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698