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

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

Issue 550863003: Rename fileBrowserPrivate to fileManagerPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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/drive/sync_client.h"
19 #include "chrome/browser/chromeos/file_manager/file_watcher.h" 19 #include "chrome/browser/chromeos/file_manager/file_watcher.h"
20 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" 20 #include "chrome/browser/chromeos/file_manager/fileapi_util.h"
21 #include "chrome/browser/chromeos/file_manager/volume_manager.h" 21 #include "chrome/browser/chromeos/file_manager/volume_manager.h"
22 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" 22 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h"
23 #include "chrome/browser/drive/drive_service_interface.h" 23 #include "chrome/browser/drive/drive_service_interface.h"
24 #include "chrome/common/extensions/api/file_browser_private.h" 24 #include "chrome/common/extensions/api/file_manager_private.h"
25 #include "chromeos/disks/disk_mount_manager.h" 25 #include "chromeos/disks/disk_mount_manager.h"
26 #include "chromeos/network/network_state_handler_observer.h" 26 #include "chromeos/network/network_state_handler_observer.h"
27 #include "webkit/browser/fileapi/file_system_operation.h" 27 #include "webkit/browser/fileapi/file_system_operation.h"
28 28
29 class PrefChangeRegistrar; 29 class PrefChangeRegistrar;
30 class Profile; 30 class Profile;
31 31
32 using file_manager::util::EntryDefinition; 32 using file_manager::util::EntryDefinition;
33 33
34 namespace base { 34 namespace base {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // Sends directory change event, after converting the file definition to entry 147 // Sends directory change event, after converting the file definition to entry
148 // definition. 148 // definition.
149 void DispatchDirectoryChangeEventWithEntryDefinition( 149 void DispatchDirectoryChangeEventWithEntryDefinition(
150 const linked_ptr<drive::FileChange> list, 150 const linked_ptr<drive::FileChange> list,
151 const std::string* extension_id, 151 const std::string* extension_id,
152 bool watcher_error, 152 bool watcher_error,
153 const EntryDefinition& entry_definition); 153 const EntryDefinition& entry_definition);
154 154
155 // Dispatches the mount completed event. 155 // Dispatches the mount completed event.
156 void DispatchMountCompletedEvent( 156 void DispatchMountCompletedEvent(
157 extensions::api::file_browser_private::MountCompletedEventType event_type, 157 extensions::api::file_manager_private::MountCompletedEventType event_type,
158 chromeos::MountError error, 158 chromeos::MountError error,
159 const VolumeInfo& volume_info); 159 const VolumeInfo& volume_info);
160 160
161 // If needed, opens a file manager window for the removable device mounted at 161 // If needed, opens a file manager window for the removable device mounted at
162 // |mount_path|. Disk.mount_path() is empty, since it is being filled out 162 // |mount_path|. Disk.mount_path() is empty, since it is being filled out
163 // after calling notifying observers by DiskMountManager. 163 // after calling notifying observers by DiskMountManager.
164 void ShowRemovableDeviceInFileManager(VolumeType type, 164 void ShowRemovableDeviceInFileManager(VolumeType type,
165 const base::FilePath& mount_path); 165 const base::FilePath& mount_path);
166 166
167 // Manages the list of currently active Drive file transfer jobs. 167 // Manages the list of currently active Drive file transfer jobs.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 // Note: This should remain the last member so it'll be destroyed and 202 // Note: This should remain the last member so it'll be destroyed and
203 // invalidate the weak pointers before any other members are destroyed. 203 // invalidate the weak pointers before any other members are destroyed.
204 base::WeakPtrFactory<EventRouter> weak_factory_; 204 base::WeakPtrFactory<EventRouter> weak_factory_;
205 DISALLOW_COPY_AND_ASSIGN(EventRouter); 205 DISALLOW_COPY_AND_ASSIGN(EventRouter);
206 }; 206 };
207 207
208 } // namespace file_manager 208 } // namespace file_manager
209 209
210 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ 210 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698