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

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

Issue 402403004: Refactoring : Move OnlineAttempt to chromeos/login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove chromeos export Created 6 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: chrome/browser/chromeos/login/auth/mount_manager.h
diff --git a/chrome/browser/chromeos/login/auth/mount_manager.h b/chrome/browser/chromeos/login/auth/mount_manager.h
deleted file mode 100644
index 904d5b15af33d4577488a359def4b86f402ec8d9..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/auth/mount_manager.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2014 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_AUTH_MOUNT_MANAGER_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_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_AUTH_MOUNT_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698