OLD | NEW |
(Empty) | |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_DEFS_H
_ |
| 5 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_DEFS_H
_ |
| 6 |
| 7 namespace extensions { |
| 8 class EventRouter; |
| 9 } // namespace extensions |
| 10 |
| 11 // source types for the provided file systems |
| 12 namespace chromeos { |
| 13 |
| 14 class PluginEventRouter; |
| 15 |
| 16 namespace file_system_provider { |
| 17 |
| 18 typedef enum Source_Type { extension = 0, plugin } Source_Type; |
| 19 |
| 20 // Define traits for fs providers sources |
| 21 // Extension or general type |
| 22 template <int n = Source_Type::extension> |
| 23 struct Source_Traits { |
| 24 typedef extensions::EventRouter EventRouterType; |
| 25 }; |
| 26 |
| 27 // Plugin filesystem |
| 28 template <> |
| 29 struct Source_Traits<Source_Type::plugin> { |
| 30 typedef chromeos::PluginEventRouter EventRouterType; |
| 31 }; |
| 32 |
| 33 } // namespace file_system_provider |
| 34 } // namespace chromeos |
| 35 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_DEF
S_H_ |
OLD | NEW |