OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 typedef base::Callback<void(const base::FilePath& virtual_path, | 61 typedef base::Callback<void(const base::FilePath& virtual_path, |
62 const drive::FileChange* list, | 62 const drive::FileChange* list, |
63 bool got_error, | 63 bool got_error, |
64 const std::vector<std::string>& extension_ids)> | 64 const std::vector<std::string>& extension_ids)> |
65 DispatchDirectoryChangeEventImplCallback; | 65 DispatchDirectoryChangeEventImplCallback; |
66 | 66 |
67 explicit EventRouter(Profile* profile); | 67 explicit EventRouter(Profile* profile); |
68 ~EventRouter() override; | 68 ~EventRouter() override; |
69 | 69 |
70 // arc::ArcServiceManager::Observer overrides. | 70 // arc::ArcServiceManager::Observer overrides. |
71 void OnAppsUpdated() override; | 71 void OnIntentFiltersUpdated() override; |
72 | 72 |
73 // KeyedService overrides. | 73 // KeyedService overrides. |
74 void Shutdown() override; | 74 void Shutdown() override; |
75 | 75 |
76 typedef base::Callback<void(bool success)> BoolCallback; | 76 typedef base::Callback<void(bool success)> BoolCallback; |
77 | 77 |
78 // Adds a file watch at |local_path|, associated with |virtual_path|, for | 78 // Adds a file watch at |local_path|, associated with |virtual_path|, for |
79 // an extension with |extension_id|. | 79 // an extension with |extension_id|. |
80 // | 80 // |
81 // |callback| will be called with true on success, or false on failure. | 81 // |callback| will be called with true on success, or false on failure. |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // Note: This should remain the last member so it'll be destroyed and | 226 // Note: This should remain the last member so it'll be destroyed and |
227 // invalidate the weak pointers before any other members are destroyed. | 227 // invalidate the weak pointers before any other members are destroyed. |
228 base::WeakPtrFactory<EventRouter> weak_factory_; | 228 base::WeakPtrFactory<EventRouter> weak_factory_; |
229 | 229 |
230 DISALLOW_COPY_AND_ASSIGN(EventRouter); | 230 DISALLOW_COPY_AND_ASSIGN(EventRouter); |
231 }; | 231 }; |
232 | 232 |
233 } // namespace file_manager | 233 } // namespace file_manager |
234 | 234 |
235 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ | 235 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ |
OLD | NEW |