OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 |
| 5 #ifndef COMPONENTS_ARC_FILE_SYSTEM_FILE_SYSTEM_STRUCT_TRAITS_H_ |
| 6 #define COMPONENTS_ARC_FILE_SYSTEM_FILE_SYSTEM_STRUCT_TRAITS_H_ |
| 7 |
| 8 #include "components/arc/common/file_system.mojom.h" |
| 9 #include "storage/browser/fileapi/watcher_manager.h" |
| 10 |
| 11 namespace mojo { |
| 12 |
| 13 template <> |
| 14 struct EnumTraits<arc::mojom::ChangeType, storage::WatcherManager::ChangeType> { |
| 15 static arc::mojom::ChangeType ToMojom( |
| 16 storage::WatcherManager::ChangeType type); |
| 17 static bool FromMojom(arc::mojom::ChangeType mojom_type, |
| 18 storage::WatcherManager::ChangeType* type); |
| 19 }; |
| 20 |
| 21 } // namespace mojo |
| 22 |
| 23 #endif // COMPONENTS_ARC_FILE_SYSTEM_FILE_SYSTEM_STRUCT_TRAITS_H_ |
OLD | NEW |