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

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

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/prefs/pref_change_registrar.h" 10 #include "base/prefs/pref_change_registrar.h"
11 #include "base/prefs/pref_service.h" 11 #include "base/prefs/pref_service.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
14 #include "base/threading/sequenced_worker_pool.h" 14 #include "base/threading/sequenced_worker_pool.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "chrome/browser/app_mode/app_mode_utils.h" 16 #include "chrome/browser/app_mode/app_mode_utils.h"
17 #include "chrome/browser/chromeos/drive/drive_integration_service.h" 17 #include "chrome/browser/chromeos/drive/drive_integration_service.h"
18 #include "chrome/browser/chromeos/drive/drive_pref_names.h" 18 #include "chrome/browser/chromeos/drive/drive_pref_names.h"
19 #include "chrome/browser/chromeos/drive/file_change.h" 19 #include "chrome/browser/chromeos/drive/file_change.h"
20 #include "chrome/browser/chromeos/drive/file_system_interface.h" 20 #include "chrome/browser/chromeos/drive/file_system_interface.h"
21 #include "chrome/browser/chromeos/drive/file_system_util.h" 21 #include "chrome/browser/chromeos/drive/file_system_util.h"
22 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h" 22 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h"
23 #include "chrome/browser/chromeos/file_manager/app_id.h" 23 #include "chrome/browser/chromeos/file_manager/app_id.h"
24 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" 24 #include "chrome/browser/chromeos/file_manager/fileapi_util.h"
25 #include "chrome/browser/chromeos/file_manager/open_util.h" 25 #include "chrome/browser/chromeos/file_manager/open_util.h"
26 #include "chrome/browser/chromeos/file_manager/volume_manager.h" 26 #include "chrome/browser/chromeos/file_manager/volume_manager.h"
27 #include "chrome/browser/chromeos/login/lock/screen_locker.h" 27 #include "chrome/browser/chromeos/login/lock/screen_locker.h"
28 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" 28 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h"
29 #include "chrome/browser/drive/drive_service_interface.h"
30 #include "chrome/browser/extensions/api/file_system/file_system_api.h" 29 #include "chrome/browser/extensions/api/file_system/file_system_api.h"
31 #include "chrome/browser/extensions/extension_service.h" 30 #include "chrome/browser/extensions/extension_service.h"
32 #include "chrome/browser/extensions/extension_util.h" 31 #include "chrome/browser/extensions/extension_util.h"
33 #include "chrome/browser/profiles/profile.h" 32 #include "chrome/browser/profiles/profile.h"
34 #include "chrome/browser/profiles/profile_manager.h" 33 #include "chrome/browser/profiles/profile_manager.h"
35 #include "chrome/common/chrome_switches.h" 34 #include "chrome/common/chrome_switches.h"
36 #include "chrome/common/pref_names.h" 35 #include "chrome/common/pref_names.h"
37 #include "chromeos/dbus/dbus_thread_manager.h" 36 #include "chromeos/dbus/dbus_thread_manager.h"
38 #include "chromeos/login/login_state.h" 37 #include "chromeos/login/login_state.h"
39 #include "chromeos/network/network_handler.h" 38 #include "chromeos/network/network_handler.h"
40 #include "chromeos/network/network_state_handler.h" 39 #include "chromeos/network/network_state_handler.h"
40 #include "components/drive/service/drive_service_interface.h"
41 #include "content/public/browser/browser_thread.h" 41 #include "content/public/browser/browser_thread.h"
42 #include "content/public/browser/render_process_host.h" 42 #include "content/public/browser/render_process_host.h"
43 #include "content/public/browser/storage_partition.h" 43 #include "content/public/browser/storage_partition.h"
44 #include "extensions/browser/event_router.h" 44 #include "extensions/browser/event_router.h"
45 #include "extensions/browser/extension_host.h" 45 #include "extensions/browser/extension_host.h"
46 #include "extensions/browser/extension_prefs.h" 46 #include "extensions/browser/extension_prefs.h"
47 #include "storage/common/fileapi/file_system_types.h" 47 #include "storage/common/fileapi/file_system_types.h"
48 #include "storage/common/fileapi/file_system_util.h" 48 #include "storage/common/fileapi/file_system_util.h"
49 49
50 using chromeos::disks::DiskMountManager; 50 using chromeos::disks::DiskMountManager;
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 void EventRouter::SetDispatchDirectoryChangeEventImplForTesting( 939 void EventRouter::SetDispatchDirectoryChangeEventImplForTesting(
940 const DispatchDirectoryChangeEventImplCallback& callback) { 940 const DispatchDirectoryChangeEventImplCallback& callback) {
941 dispatch_directory_change_event_impl_ = callback; 941 dispatch_directory_change_event_impl_ = callback;
942 } 942 }
943 943
944 base::WeakPtr<EventRouter> EventRouter::GetWeakPtr() { 944 base::WeakPtr<EventRouter> EventRouter::GetWeakPtr() {
945 return weak_factory_.GetWeakPtr(); 945 return weak_factory_.GetWeakPtr();
946 } 946 }
947 947
948 } // namespace file_manager 948 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698