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

Unified Diff: mojo/runner/scoped_user_data_dir.h

Issue 1231493002: mandoline filesystem: Save cookie data to the mojo:filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT Created 5 years, 5 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
Index: mojo/runner/scoped_user_data_dir.h
diff --git a/mojo/runner/scoped_user_data_dir.h b/mojo/runner/scoped_user_data_dir.h
new file mode 100644
index 0000000000000000000000000000000000000000..01d84187664262430d94c1e03485a3294901c529
--- /dev/null
+++ b/mojo/runner/scoped_user_data_dir.h
@@ -0,0 +1,28 @@
+// Copyright 2015 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.
+
+#ifndef MOJO_RUNNER_SCOPED_USER_DATA_DIR_H_
+#define MOJO_RUNNER_SCOPED_USER_DATA_DIR_H_
+
+#include "base/files/scoped_temp_dir.h"
+
+namespace mojo {
+namespace runner {
+
+// A scoped class which owns a ScopedTempDir if --use-temporary-user-data-dir
+// is set. If it is, also modifies the command line so that --user-data-dir
+// points to the temporary dir.
+class ScopedUserDataDir {
+ public:
+ ScopedUserDataDir();
+ ~ScopedUserDataDir();
+
+ private:
+ base::ScopedTempDir temp_dir_;
+};
+
+} // namespace runner
+} // namespace mojo
+
+#endif // MOJO_RUNNER_SCOPED_USER_DATA_DIR_H_
« no previous file with comments | « mojo/runner/context.h ('k') | mojo/runner/scoped_user_data_dir.cc » ('j') | sql/mojo/mojo_vfs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698