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

Unified Diff: mojo/services/files/public/c/lib/singletons.h

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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 | « mojo/services/files/public/c/lib/real_errno_impl.cc ('k') | mojo/services/files/public/c/lib/singletons.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/files/public/c/lib/singletons.h
diff --git a/mojo/services/files/public/c/lib/singletons.h b/mojo/services/files/public/c/lib/singletons.h
deleted file mode 100644
index 5c9980352c24e39d268e1eda10ca6af9fbb9b290..0000000000000000000000000000000000000000
--- a/mojo/services/files/public/c/lib/singletons.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// 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 SERVICES_FILES_C_LIB_SINGLETONS_H_
-#define SERVICES_FILES_C_LIB_SINGLETONS_H_
-
-#include "files/public/interfaces/directory.mojom.h"
-
-namespace mojio {
-
-class DirectoryWrapper;
-class ErrnoImpl;
-class FDTable;
-
-namespace singletons {
-
-// Gets the singleton |ErrnoImpl| (creating it if necessary), which gets/sets
-// the "real" errno.
-ErrnoImpl* GetErrnoImpl();
-// Resets (destroys) the singleton |ErrnoImpl|. Warning: Do not call this unless
-// things relying on the singleton |ErrnoImpl| have been reset first.
-void ResetErrnoImpl();
-
-// Gets the singleton |FDTable| (creating it if necessary, using
-// MOJIO_CONFIG_MAX_NUM_FDS and the singleton |ErrnoImpl|).
-FDTable* GetFDTable();
-// Resets (destroys) the singleton |FDTable|.
-void ResetFDTable();
-
-// Explicitly set the singleton current working directory to |directory| (which
-// should be valid). (The singleton |DirectoryWrapper| will be reset if
-// necessary.) This uses the singleton |ErrnoImpl|.
-void SetCurrentWorkingDirectory(mojo::files::DirectoryPtr directory);
-// Gets the current working directory (i.e., the singleton |DirectoryWrapper|).
-// WARNING!!! This returns null if it was not previously set (see above) or has
-// been reset, in which case it will also use the singleton |ErrnoImpl| (to set
-// errno).
-DirectoryWrapper* GetCurrentWorkingDirectory();
-// Resets (destroys) the singleton |DirectoryWrapper|.
-void ResetCurrentWorkingDirectory();
-
-} // namespace singletons
-} // namespace mojio
-
-#endif // SERVICES_FILES_C_LIB_SINGLETONS_H_
« no previous file with comments | « mojo/services/files/public/c/lib/real_errno_impl.cc ('k') | mojo/services/files/public/c/lib/singletons.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698