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..235e170302de89b48c0648d3ad9efd8415b78bba |
--- /dev/null |
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system_defs.h |
@@ -0,0 +1,35 @@ |
+// 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_ |
+ |
+namespace extensions { |
+class EventRouter; |
+} // namespace extensions |
+ |
+// source types for the provided file systems |
+namespace chromeos { |
+ |
+class PluginEventRouter; |
+ |
+namespace file_system_provider { |
+ |
+typedef enum Source_Type { extension = 0, plugin } Source_Type; |
+ |
+// Define traits for fs providers sources |
+// Extension or general type |
+template <int n = Source_Type::extension> |
+struct Source_Traits { |
+ typedef extensions::EventRouter EventRouterType; |
+}; |
+ |
+// Plugin filesystem |
+template <> |
+struct Source_Traits<Source_Type::plugin> { |
+ typedef chromeos::PluginEventRouter EventRouterType; |
+}; |
+ |
+} // namespace file_system_provider |
+} // namespace chromeos |
+#endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_DEFS_H_ |