Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/event_router.h

Issue 137903002: Files.app: Add a drive sync error event to the fileBrowserPrivate API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/files/file_path_watcher.h" 13 #include "base/files/file_path_watcher.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "chrome/browser/chromeos/drive/drive_integration_service.h" 15 #include "chrome/browser/chromeos/drive/drive_integration_service.h"
16 #include "chrome/browser/chromeos/drive/file_system_observer.h" 16 #include "chrome/browser/chromeos/drive/file_system_observer.h"
17 #include "chrome/browser/chromeos/drive/job_list.h" 17 #include "chrome/browser/chromeos/drive/job_list.h"
18 #include "chrome/browser/chromeos/drive/sync_client.h"
18 #include "chrome/browser/chromeos/file_manager/file_watcher.h" 19 #include "chrome/browser/chromeos/file_manager/file_watcher.h"
19 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" 20 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h"
20 #include "chrome/browser/drive/drive_service_interface.h" 21 #include "chrome/browser/drive/drive_service_interface.h"
21 #include "chrome/common/extensions/api/file_browser_private.h" 22 #include "chrome/common/extensions/api/file_browser_private.h"
22 #include "chromeos/disks/disk_mount_manager.h" 23 #include "chromeos/disks/disk_mount_manager.h"
23 #include "chromeos/network/network_state_handler_observer.h" 24 #include "chromeos/network/network_state_handler_observer.h"
24 #include "webkit/browser/fileapi/file_system_operation.h" 25 #include "webkit/browser/fileapi/file_system_operation.h"
25 26
26 class PrefChangeRegistrar; 27 class PrefChangeRegistrar;
27 class Profile; 28 class Profile;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 virtual void OnJobUpdated(const drive::JobInfo& job_info) OVERRIDE; 93 virtual void OnJobUpdated(const drive::JobInfo& job_info) OVERRIDE;
93 virtual void OnJobDone(const drive::JobInfo& job_info, 94 virtual void OnJobDone(const drive::JobInfo& job_info,
94 drive::FileError error) OVERRIDE; 95 drive::FileError error) OVERRIDE;
95 96
96 // drive::DriveServiceObserver overrides. 97 // drive::DriveServiceObserver overrides.
97 virtual void OnRefreshTokenInvalid() OVERRIDE; 98 virtual void OnRefreshTokenInvalid() OVERRIDE;
98 99
99 // drive::FileSystemObserver overrides. 100 // drive::FileSystemObserver overrides.
100 virtual void OnDirectoryChanged( 101 virtual void OnDirectoryChanged(
101 const base::FilePath& directory_path) OVERRIDE; 102 const base::FilePath& directory_path) OVERRIDE;
103 virtual void OnDriveSyncError(
104 drive::file_system::DriveSyncErrorType type) OVERRIDE;
102 105
103 // VolumeManagerObserver overrides. 106 // VolumeManagerObserver overrides.
104 virtual void OnDiskAdded( 107 virtual void OnDiskAdded(
105 const chromeos::disks::DiskMountManager::Disk& disk, 108 const chromeos::disks::DiskMountManager::Disk& disk,
106 bool mounting) OVERRIDE; 109 bool mounting) OVERRIDE;
107 virtual void OnDiskRemoved( 110 virtual void OnDiskRemoved(
108 const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE; 111 const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE;
109 virtual void OnDeviceAdded(const std::string& device_path) OVERRIDE; 112 virtual void OnDeviceAdded(const std::string& device_path) OVERRIDE;
110 virtual void OnDeviceRemoved(const std::string& device_path) OVERRIDE; 113 virtual void OnDeviceRemoved(const std::string& device_path) OVERRIDE;
111 virtual void OnVolumeMounted(chromeos::MountError error_code, 114 virtual void OnVolumeMounted(chromeos::MountError error_code,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 171
169 // Note: This should remain the last member so it'll be destroyed and 172 // Note: This should remain the last member so it'll be destroyed and
170 // invalidate the weak pointers before any other members are destroyed. 173 // invalidate the weak pointers before any other members are destroyed.
171 base::WeakPtrFactory<EventRouter> weak_factory_; 174 base::WeakPtrFactory<EventRouter> weak_factory_;
172 DISALLOW_COPY_AND_ASSIGN(EventRouter); 175 DISALLOW_COPY_AND_ASSIGN(EventRouter);
173 }; 176 };
174 177
175 } // namespace file_manager 178 } // namespace file_manager
176 179
177 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ 180 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698