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

Unified Diff: chrome/browser/chromeos/login/mount_manager.h

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.cc ('k') | chrome/browser/chromeos/login/mount_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/mount_manager.h
diff --git a/chrome/browser/chromeos/login/mount_manager.h b/chrome/browser/chromeos/login/mount_manager.h
deleted file mode 100644
index b0f61dd8297946fa186cfc2cbc7ec1d9eb1a3a72..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/mount_manager.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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.
-
-#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOUNT_MANAGER_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_MOUNT_MANAGER_H_
-
-#include <map>
-#include <string>
-
-#include "base/files/file_path.h"
-#include "base/memory/scoped_ptr.h"
-
-class PrefRegistrySimple;
-
-namespace chromeos {
-
-// Keeps track of mount points for different users.
-class MountManager {
- public:
- // Returns a shared instance of a MountManager. Not thread-safe,
- // should only be called from the main UI thread.
- static MountManager* Get();
-
- static base::FilePath GetHomeDir(std::string& user_hash);
-
- virtual ~MountManager();
-
- virtual bool IsMounted(const std::string& user_id);
- virtual base::FilePath GetPath(const std::string& user_id);
-
- virtual void SetPath(const std::string& user_id,
- const base::FilePath& path);
- virtual void DeletePath(const std::string& user_id);
-
- private:
- MountManager();
-
- typedef std::map<std::string, base::FilePath> UserToPathMap;
-
- UserToPathMap additional_mounts_;
-
- static MountManager* instance_;
-
- DISALLOW_COPY_AND_ASSIGN(MountManager);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOUNT_MANAGER_H_
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.cc ('k') | chrome/browser/chromeos/login/mount_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698