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

Unified Diff: chrome/browser/extensions/api/file_handlers/app_file_handler_util.h

Issue 217533006: Introduce apps API target in //apps and move app.runtime API into it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix dependencies (app-runtime-move) Created 6 years, 9 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/extensions/api/file_handlers/app_file_handler_util.h
diff --git a/chrome/browser/extensions/api/file_handlers/app_file_handler_util.h b/chrome/browser/extensions/api/file_handlers/app_file_handler_util.h
index 4dd7300ae1570018658ae92a55294bf21cb4d955..14bd11cf1deda85502ce3b5ad90f60efd2cf2997 100644
--- a/chrome/browser/extensions/api/file_handlers/app_file_handler_util.h
+++ b/chrome/browser/extensions/api/file_handlers/app_file_handler_util.h
@@ -16,6 +16,12 @@
class Profile;
+namespace apps {
+namespace file_handler_util {
+struct GrantedFileEntry;
+}
+}
+
namespace extensions {
class ExtensionPrefs;
@@ -51,18 +57,9 @@ bool FileHandlerCanHandleFile(
const std::string& mime_type,
const base::FilePath& path);
-// Refers to a file entry that a renderer has been given access to.
-struct GrantedFileEntry {
- GrantedFileEntry();
-
- std::string id;
- std::string filesystem_id;
- std::string registered_name;
-};
-
// Creates a new file entry and allows |renderer_id| to access |path|. This
// registers a new file system for |path|.
-GrantedFileEntry CreateFileEntry(
+apps::file_handler_util::GrantedFileEntry CreateFileEntry(
Profile* profile,
const Extension* extension,
int renderer_id,

Powered by Google App Engine
This is Rietveld 408576698