| 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_BROWSER_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 const chromeos::disks::DiskMountManager::MountPointInfo& mount_info); | 149 const chromeos::disks::DiskMountManager::MountPointInfo& mount_info); |
| 150 | 150 |
| 151 void RemoveBrowserFromVector(const std::string& path); | 151 void RemoveBrowserFromVector(const std::string& path); |
| 152 | 152 |
| 153 // Used to create a window of a standard size, and add it to a list | 153 // Used to create a window of a standard size, and add it to a list |
| 154 // of tracked browser windows in case that device goes away. | 154 // of tracked browser windows in case that device goes away. |
| 155 void OpenFileBrowse(const std::string& url, | 155 void OpenFileBrowse(const std::string& url, |
| 156 const std::string& device_path, | 156 const std::string& device_path, |
| 157 bool small); | 157 bool small); |
| 158 | 158 |
| 159 // Returns the GDataFileSystem for the current profile. |
| 160 gdata::GDataFileSystem* GetFileSystem() const; |
| 161 |
| 159 scoped_refptr<FileWatcherDelegate> delegate_; | 162 scoped_refptr<FileWatcherDelegate> delegate_; |
| 160 WatcherMap file_watchers_; | 163 WatcherMap file_watchers_; |
| 161 scoped_ptr<FileBrowserNotifications> notifications_; | 164 scoped_ptr<FileBrowserNotifications> notifications_; |
| 162 Profile* profile_; | 165 Profile* profile_; |
| 163 base::Lock lock_; | 166 base::Lock lock_; |
| 164 | 167 |
| 165 bool current_gdata_operation_failed_; | 168 bool current_gdata_operation_failed_; |
| 166 int last_active_gdata_operation_count_; | 169 int last_active_gdata_operation_count_; |
| 167 | 170 |
| 168 DISALLOW_COPY_AND_ASSIGN(FileBrowserEventRouter); | 171 DISALLOW_COPY_AND_ASSIGN(FileBrowserEventRouter); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 189 | 192 |
| 190 FileBrowserEventRouterFactory(); | 193 FileBrowserEventRouterFactory(); |
| 191 virtual ~FileBrowserEventRouterFactory(); | 194 virtual ~FileBrowserEventRouterFactory(); |
| 192 | 195 |
| 193 // ProfileKeyedServiceFactory: | 196 // ProfileKeyedServiceFactory: |
| 194 virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor( | 197 virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor( |
| 195 Profile* profile) const OVERRIDE; | 198 Profile* profile) const OVERRIDE; |
| 196 }; | 199 }; |
| 197 | 200 |
| 198 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ | 201 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ |
| OLD | NEW |