| 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 OnArcShutdown() override; |
| 71 void OnIntentFiltersUpdated() override; | 72 void OnIntentFiltersUpdated() override; |
| 72 | 73 |
| 73 // KeyedService overrides. | 74 // KeyedService overrides. |
| 74 void Shutdown() override; | 75 void Shutdown() override; |
| 75 | 76 |
| 76 typedef base::Callback<void(bool success)> BoolCallback; | 77 typedef base::Callback<void(bool success)> BoolCallback; |
| 77 | 78 |
| 78 // Adds a file watch at |local_path|, associated with |virtual_path|, for | 79 // Adds a file watch at |local_path|, associated with |virtual_path|, for |
| 79 // an extension with |extension_id|. | 80 // an extension with |extension_id|. |
| 80 // | 81 // |
| (...skipping 145 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 | 227 // Note: This should remain the last member so it'll be destroyed and |
| 227 // invalidate the weak pointers before any other members are destroyed. | 228 // invalidate the weak pointers before any other members are destroyed. |
| 228 base::WeakPtrFactory<EventRouter> weak_factory_; | 229 base::WeakPtrFactory<EventRouter> weak_factory_; |
| 229 | 230 |
| 230 DISALLOW_COPY_AND_ASSIGN(EventRouter); | 231 DISALLOW_COPY_AND_ASSIGN(EventRouter); |
| 231 }; | 232 }; |
| 232 | 233 |
| 233 } // namespace file_manager | 234 } // namespace file_manager |
| 234 | 235 |
| 235 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ | 236 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ |
| OLD | NEW |