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

Unified Diff: webkit/browser/chromeos/fileapi/file_access_permissions.h

Issue 17644006: Move files under webkit/browser/fileapi/... to chrome/browser/chromeos/fileapi/... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments. Created 7 years, 6 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: webkit/browser/chromeos/fileapi/file_access_permissions.h
diff --git a/webkit/browser/chromeos/fileapi/file_access_permissions.h b/webkit/browser/chromeos/fileapi/file_access_permissions.h
deleted file mode 100644
index 6af1ddd40ad1c8acdc5bd38a15af95624d71ca88..0000000000000000000000000000000000000000
--- a/webkit/browser/chromeos/fileapi/file_access_permissions.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2011 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 WEBKIT_BROWSER_CHROMEOS_FILEAPI_FILE_ACCESS_PERMISSIONS_H_
-#define WEBKIT_BROWSER_CHROMEOS_FILEAPI_FILE_ACCESS_PERMISSIONS_H_
-
-#include <map>
-#include <set>
-#include <string>
-
-#include "base/files/file_path.h"
-#include "base/synchronization/lock.h"
-#include "webkit/browser/webkit_storage_browser_export.h"
-
-namespace chromeos {
-
-class WEBKIT_STORAGE_BROWSER_EXPORT FileAccessPermissions {
- public:
- FileAccessPermissions();
- virtual ~FileAccessPermissions();
-
- // Grants |extension_id| access to |path|.
- void GrantAccessPermission(const std::string& extension_id,
- const base::FilePath& path);
- // Checks id |extension_id| has permission to access to |path|.
- bool HasAccessPermission(const std::string& extension_id,
- const base::FilePath& path) const;
- // Revokes all file permissions for |extension_id|.
- void RevokePermissions(const std::string& extension_id);
-
- private:
- typedef std::set<base::FilePath> PathSet;
- typedef std::map<std::string, PathSet> PathAccessMap;
-
- mutable base::Lock lock_; // Synchronize all access to path_map_.
- PathAccessMap path_map_;
-};
-
-} // namespace chromeos
-
-#endif // WEBKIT_BROWSER_CHROMEOS_FILEAPI_FILE_ACCESS_PERMISSIONS_H_

Powered by Google App Engine
This is Rietveld 408576698