OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_WATCHER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_WATCHER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_WATCHER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_WATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/files/file_path_watcher.h" | 13 #include "base/files/file_path_watcher.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 | 15 |
16 namespace file_manager { | 16 namespace file_manager { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 typedef std::map<std::string, int> ExtensionCountMap; | 77 typedef std::map<std::string, int> ExtensionCountMap; |
78 ExtensionCountMap extensions_; | 78 ExtensionCountMap extensions_; |
79 | 79 |
80 // Note: This should remain the last member so it'll be destroyed and | 80 // Note: This should remain the last member so it'll be destroyed and |
81 // invalidate the weak pointers before any other members are destroyed. | 81 // invalidate the weak pointers before any other members are destroyed. |
82 base::WeakPtrFactory<FileWatcher> weak_ptr_factory_; | 82 base::WeakPtrFactory<FileWatcher> weak_ptr_factory_; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace file_manager | 85 } // namespace file_manager |
86 | 86 |
87 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_WATCHER_H_ | 87 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_WATCHER_H_ |
OLD | NEW |