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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_event_router.h

Issue 10837338: Remove "GData" prefix from non-GData specific classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 years, 4 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_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 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/files/file_path_watcher.h" 12 #include "base/files/file_path_watcher.h"
13 #include "base/memory/linked_ptr.h" 13 #include "base/memory/linked_ptr.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "chrome/browser/chromeos/cros/network_library.h" 17 #include "chrome/browser/chromeos/cros/network_library.h"
18 #include "chrome/browser/chromeos/disks/disk_mount_manager.h" 18 #include "chrome/browser/chromeos/disks/disk_mount_manager.h"
19 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h" 19 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h"
20 #include "chrome/browser/chromeos/gdata/gdata_operation_registry.h" 20 #include "chrome/browser/chromeos/gdata/operation_registry.h"
21 #include "chrome/browser/profiles/refcounted_profile_keyed_service.h" 21 #include "chrome/browser/profiles/refcounted_profile_keyed_service.h"
22 #include "chrome/browser/profiles/refcounted_profile_keyed_service_factory.h" 22 #include "chrome/browser/profiles/refcounted_profile_keyed_service_factory.h"
23 #include "content/public/browser/notification_details.h" 23 #include "content/public/browser/notification_details.h"
24 #include "content/public/browser/notification_observer.h" 24 #include "content/public/browser/notification_observer.h"
25 #include "content/public/browser/notification_source.h" 25 #include "content/public/browser/notification_source.h"
26 26
27 class FileBrowserNotifications; 27 class FileBrowserNotifications;
28 class PrefChangeRegistrar; 28 class PrefChangeRegistrar;
29 class Profile; 29 class Profile;
30 30
31 // Monitors changes in disk mounts, network connection state and preferences 31 // Monitors changes in disk mounts, network connection state and preferences
32 // affecting File Manager. Dispatches appropriate File Browser events. 32 // affecting File Manager. Dispatches appropriate File Browser events.
33 class FileBrowserEventRouter 33 class FileBrowserEventRouter
34 : public RefcountedProfileKeyedService, 34 : public RefcountedProfileKeyedService,
35 public chromeos::disks::DiskMountManager::Observer, 35 public chromeos::disks::DiskMountManager::Observer,
36 public chromeos::NetworkLibrary::NetworkManagerObserver, 36 public chromeos::NetworkLibrary::NetworkManagerObserver,
37 public content::NotificationObserver, 37 public content::NotificationObserver,
38 public gdata::GDataOperationRegistry::Observer, 38 public gdata::OperationRegistry::Observer,
39 public gdata::GDataFileSystemInterface::Observer { 39 public gdata::GDataFileSystemInterface::Observer {
40 public: 40 public:
41 // RefcountedProfileKeyedService overrides. 41 // RefcountedProfileKeyedService overrides.
42 virtual void ShutdownOnUIThread() OVERRIDE; 42 virtual void ShutdownOnUIThread() OVERRIDE;
43 43
44 // Starts observing file system change events. Currently only 44 // Starts observing file system change events. Currently only
45 // CrosDisksClient events are being observed. 45 // CrosDisksClient events are being observed.
46 void ObserveFileSystemEvents(); 46 void ObserveFileSystemEvents();
47 47
48 // File watch setup routines. 48 // File watch setup routines.
(...skipping 21 matching lines...) Expand all
70 70
71 // chromeos::NetworkLibrary::NetworkManagerObserver override. 71 // chromeos::NetworkLibrary::NetworkManagerObserver override.
72 virtual void OnNetworkManagerChanged( 72 virtual void OnNetworkManagerChanged(
73 chromeos::NetworkLibrary* network_library) OVERRIDE; 73 chromeos::NetworkLibrary* network_library) OVERRIDE;
74 74
75 // Overridden from content::NotificationObserver: 75 // Overridden from content::NotificationObserver:
76 virtual void Observe(int type, 76 virtual void Observe(int type,
77 const content::NotificationSource& source, 77 const content::NotificationSource& source,
78 const content::NotificationDetails& details) OVERRIDE; 78 const content::NotificationDetails& details) OVERRIDE;
79 79
80 // GDataOperationRegistry::Observer overrides. 80 // OperationRegistry::Observer overrides.
81 virtual void OnProgressUpdate( 81 virtual void OnProgressUpdate(
82 const std::vector<gdata::GDataOperationRegistry::ProgressStatus>& list) 82 const std::vector<gdata::OperationRegistry::ProgressStatus>& list)
83 OVERRIDE; 83 OVERRIDE;
84 virtual void OnAuthenticationFailed() OVERRIDE; 84 virtual void OnAuthenticationFailed() OVERRIDE;
85 85
86 // gdata::GDataFileSystemInterface::Observer overrides. 86 // gdata::GDataFileSystemInterface::Observer overrides.
87 virtual void OnDirectoryChanged(const FilePath& directory_path) OVERRIDE; 87 virtual void OnDirectoryChanged(const FilePath& directory_path) OVERRIDE;
88 virtual void OnDocumentFeedFetched(int num_accumulated_entries) OVERRIDE; 88 virtual void OnDocumentFeedFetched(int num_accumulated_entries) OVERRIDE;
89 virtual void OnFileSystemMounted() OVERRIDE; 89 virtual void OnFileSystemMounted() OVERRIDE;
90 virtual void OnFileSystemBeingUnmounted() OVERRIDE; 90 virtual void OnFileSystemBeingUnmounted() OVERRIDE;
91 91
92 private: 92 private:
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 FileBrowserEventRouterFactory(); 235 FileBrowserEventRouterFactory();
236 virtual ~FileBrowserEventRouterFactory(); 236 virtual ~FileBrowserEventRouterFactory();
237 237
238 // ProfileKeyedServiceFactory: 238 // ProfileKeyedServiceFactory:
239 virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor( 239 virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor(
240 Profile* profile) const OVERRIDE; 240 Profile* profile) const OVERRIDE;
241 }; 241 };
242 242
243 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ 243 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698