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

Unified Diff: chrome/browser/chromeos/file_system_provider/provided_file_system_defs.h

Issue 1093383002: [WIP] Provided file system from NACL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved several modules to chromeos folder. Created 5 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/file_system_provider/provided_file_system_defs.h
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system_defs.h b/chrome/browser/chromeos/file_system_provider/provided_file_system_defs.h
new file mode 100644
index 0000000000000000000000000000000000000000..9a1421bc390f63511cec0ef27088457a01582993
--- /dev/null
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system_defs.h
@@ -0,0 +1,38 @@
+// Copyright 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_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_DEFS_H_
+#define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_DEFS_H_
+
+class Profile;
+namespace extensions {
+ class EventRouter;
+} // namespace extensions
+
+// source types for the provided file systems
+namespace chromeos {
+
+namespace file_system_provider {
+
+class PluginOperationRouter;
+
+typedef enum Source_Type { extension = 0, plugin } Source_Type;
+
+struct ExtensionDestination {
+ typedef extensions::EventRouter EventRouterType;
+ EventRouterType* Get(Profile*);
+};
+
+struct PluginDestination {
+ typedef chromeos::file_system_provider::PluginOperationRouter EventRouterType;
+ EventRouterType* Get(Profile*);
+};
+
+#define FOR_EACH_DESTINATION_SPECIALIZE(TARGET) \
+ template class TARGET<ExtensionDestination>; \
+ template class TARGET<PluginDestination>;
+
+
+} // namespace file_system_provider
+} // namespace chromeos
+#endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_DEFS_H_

Powered by Google App Engine
This is Rietveld 408576698