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 class Profile; |
| 8 namespace extensions { |
| 9 class EventRouter; |
| 10 } // namespace extensions |
| 11 |
| 12 // source types for the provided file systems |
| 13 namespace chromeos { |
| 14 |
| 15 namespace file_system_provider { |
| 16 |
| 17 class PluginOperationRouter; |
| 18 |
| 19 typedef enum Source_Type { extension = 0, plugin } Source_Type; |
| 20 |
| 21 struct ExtensionDestination { |
| 22 typedef extensions::EventRouter EventRouterType; |
| 23 EventRouterType* Get(Profile*); |
| 24 }; |
| 25 |
| 26 struct PluginDestination { |
| 27 typedef chromeos::file_system_provider::PluginOperationRouter EventRouterType; |
| 28 EventRouterType* Get(Profile*); |
| 29 }; |
| 30 |
| 31 #define FOR_EACH_DESTINATION_SPECIALIZE(TARGET) \ |
| 32 template class TARGET<ExtensionDestination>; \ |
| 33 template class TARGET<PluginDestination>; |
| 34 |
| 35 |
| 36 } // namespace file_system_provider |
| 37 } // namespace chromeos |
| 38 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_DEF
S_H_ |
OLD | NEW |