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_ |