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

Side by Side Diff: components/filesystem/shared_temp_dir.h

Issue 1935863002: mojo: Fix leveldb unittests by making fs::Directories cloneable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Gyp continues to exist. Created 4 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_FILESYSTEM_SHARED_TEMP_DIR_H_
6 #define COMPONENTS_FILESYSTEM_SHARED_TEMP_DIR_H_
7
8 #include "base/memory/ref_counted.h"
9
10 namespace base {
11 class ScopedTempDir;
12 }
13
14 namespace filesystem {
15
16 // A class to allow multiple Directory objects to hold a reference to a
17 // temporary directory.
18 class SharedTempDir : public base::RefCounted<SharedTempDir> {
19 public:
20 SharedTempDir(std::unique_ptr<base::ScopedTempDir> temp_dir);
21
22 private:
23 friend class base::RefCounted<SharedTempDir>;
24 ~SharedTempDir();
25
26 std::unique_ptr<base::ScopedTempDir> temp_dir_;
27
28 DISALLOW_COPY_AND_ASSIGN(SharedTempDir);
29 };
30
31 } // namespace filesystem
32
33 #endif // COMPONENTS_FILESYSTEM_SHARED_TEMP_DIR_H_
OLDNEW
« no previous file with comments | « components/filesystem/public/interfaces/directory.mojom ('k') | components/filesystem/shared_temp_dir.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698