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

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: Fixed typo. 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 virtual void OnJobUpdated(const drive::JobInfo& job_info) OVERRIDE; 91 virtual void OnJobUpdated(const drive::JobInfo& job_info) OVERRIDE;
91 virtual void OnJobDone(const drive::JobInfo& job_info, 92 virtual void OnJobDone(const drive::JobInfo& job_info,
92 drive::FileError error) OVERRIDE; 93 drive::FileError error) OVERRIDE;
93 94
94 // drive::DriveServiceObserver overrides. 95 // drive::DriveServiceObserver overrides.
95 virtual void OnRefreshTokenInvalid() OVERRIDE; 96 virtual void OnRefreshTokenInvalid() OVERRIDE;
96 97
97 // drive::FileSystemObserver overrides. 98 // drive::FileSystemObserver overrides.
98 virtual void OnDirectoryChanged( 99 virtual void OnDirectoryChanged(
99 const base::FilePath& directory_path) OVERRIDE; 100 const base::FilePath& directory_path) OVERRIDE;
101 virtual void OnDriveSyncError(
102 drive::file_system::DriveSyncErrorType type) OVERRIDE;
100 103
101 // VolumeManagerObserver overrides. 104 // VolumeManagerObserver overrides.
102 virtual void OnDiskAdded( 105 virtual void OnDiskAdded(
103 const chromeos::disks::DiskMountManager::Disk& disk, 106 const chromeos::disks::DiskMountManager::Disk& disk,
104 bool mounting) OVERRIDE; 107 bool mounting) OVERRIDE;
105 virtual void OnDiskRemoved( 108 virtual void OnDiskRemoved(
106 const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE; 109 const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE;
107 virtual void OnDeviceAdded(const std::string& device_path) OVERRIDE; 110 virtual void OnDeviceAdded(const std::string& device_path) OVERRIDE;
108 virtual void OnDeviceRemoved(const std::string& device_path) OVERRIDE; 111 virtual void OnDeviceRemoved(const std::string& device_path) OVERRIDE;
109 virtual void OnVolumeMounted(chromeos::MountError error_code, 112 virtual void OnVolumeMounted(chromeos::MountError error_code,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 168
166 // Note: This should remain the last member so it'll be destroyed and 169 // Note: This should remain the last member so it'll be destroyed and
167 // invalidate the weak pointers before any other members are destroyed. 170 // invalidate the weak pointers before any other members are destroyed.
168 base::WeakPtrFactory<EventRouter> weak_factory_; 171 base::WeakPtrFactory<EventRouter> weak_factory_;
169 DISALLOW_COPY_AND_ASSIGN(EventRouter); 172 DISALLOW_COPY_AND_ASSIGN(EventRouter);
170 }; 173 };
171 174
172 } // namespace file_manager 175 } // namespace file_manager
173 176
174 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ 177 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698