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

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: Various cleanups Created 5 years, 7 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..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_

Powered by Google App Engine
This is Rietveld 408576698