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

Side by Side 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, 6 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698