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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/fileapi_util.h

Issue 23945002: file_manager: Move non-binding code to c/b/chromeos/file_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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/extensions/file_manager/fileapi_util.h
diff --git a/chrome/browser/chromeos/extensions/file_manager/fileapi_util.h b/chrome/browser/chromeos/extensions/file_manager/fileapi_util.h
deleted file mode 100644
index 0d6e08fd7f5dcc068424ddb40ca8339baf9b4caa..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/extensions/file_manager/fileapi_util.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2013 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.
-//
-// This file provides File API related utilities.
-
-#ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILEAPI_UTIL_H_
-#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILEAPI_UTIL_H_
-
-#include <string>
-#include "url/gurl.h"
-
-class Profile;
-
-namespace base {
-class FilePath;
-}
-
-namespace content {
-class RenderViewHost;
-}
-
-namespace fileapi {
-class FileSystemContext;
-}
-
-namespace file_manager {
-namespace util {
-
-// Returns a file system context associated with the given profile and the
-// extension ID.
-fileapi::FileSystemContext* GetFileSystemContextForExtensionId(
- Profile* profile,
- const std::string& extension_id);
-
-// Returns a file system context associated with the given profile and the
-// render view host.
-fileapi::FileSystemContext* GetFileSystemContextForRenderViewHost(
- Profile* profile,
- content::RenderViewHost* render_view_host);
-
-// Converts |relative_path| (e.g., "drive/root" or "Downloads") into external
-// filesystem URL (e.g., filesystem://id/external/drive/root).
-GURL ConvertRelativeFilePathToFileSystemUrl(const base::FilePath& relative_path,
- const std::string& extension_id);
-
-// Converts |absolute_path| (e.g., "/special/drive/root" or
-// "/home/chronos/user/Downloads") into external filesystem URL. Returns false
-// if |absolute_path| is not managed by the external filesystem provider.
-bool ConvertAbsoluteFilePathToFileSystemUrl(
- Profile* profile,
- const base::FilePath& absolute_path,
- const std::string& extension_id,
- GURL* url);
-
-// Converts |absolute_path| into |relative_path| within the external
-// provider in File API. Returns false if |absolute_path| is not managed
-// by the external filesystem provider.
-bool ConvertAbsoluteFilePathToRelativeFileSystemPath(
- Profile* profile,
- const std::string& extension_id,
- const base::FilePath& absolute_path,
- base::FilePath* relative_path);
-
-} // namespace util
-} // namespace file_manager
-
-#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILEAPI_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698