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

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

Issue 15658004: Split FileAPI code for common|common_child|renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_event_rou ter.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_event_rou ter.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/prefs/pref_change_registrar.h" 10 #include "base/prefs/pref_change_registrar.h"
(...skipping 17 matching lines...) Expand all
28 #include "chrome/browser/profiles/profile.h" 28 #include "chrome/browser/profiles/profile.h"
29 #include "chrome/common/chrome_notification_types.h" 29 #include "chrome/common/chrome_notification_types.h"
30 #include "chrome/common/pref_names.h" 30 #include "chrome/common/pref_names.h"
31 #include "chromeos/dbus/cros_disks_client.h" 31 #include "chromeos/dbus/cros_disks_client.h"
32 #include "chromeos/dbus/dbus_thread_manager.h" 32 #include "chromeos/dbus/dbus_thread_manager.h"
33 #include "chromeos/dbus/power_manager_client.h" 33 #include "chromeos/dbus/power_manager_client.h"
34 #include "chromeos/dbus/session_manager_client.h" 34 #include "chromeos/dbus/session_manager_client.h"
35 #include "chromeos/login/login_state.h" 35 #include "chromeos/login/login_state.h"
36 #include "content/public/browser/browser_thread.h" 36 #include "content/public/browser/browser_thread.h"
37 #include "content/public/browser/notification_source.h" 37 #include "content/public/browser/notification_source.h"
38 #include "webkit/fileapi/file_system_types.h" 38 #include "webkit/common/fileapi/file_system_types.h"
39 #include "webkit/fileapi/file_system_util.h" 39 #include "webkit/common/fileapi/file_system_util.h"
40 40
41 using chromeos::DBusThreadManager; 41 using chromeos::DBusThreadManager;
42 using chromeos::disks::DiskMountManager; 42 using chromeos::disks::DiskMountManager;
43 using content::BrowserThread; 43 using content::BrowserThread;
44 using drive::DriveIntegrationService; 44 using drive::DriveIntegrationService;
45 using drive::DriveIntegrationServiceFactory; 45 using drive::DriveIntegrationServiceFactory;
46 46
47 namespace { 47 namespace {
48 48
49 const char kPathChanged[] = "changed"; 49 const char kPathChanged[] = "changed";
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 base::FilePathWatcher* file_watcher) { 1083 base::FilePathWatcher* file_watcher) {
1084 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 1084 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
1085 1085
1086 if (file_watcher) { 1086 if (file_watcher) {
1087 file_watcher_ = file_watcher; 1087 file_watcher_ = file_watcher;
1088 callback.Run(true); 1088 callback.Run(true);
1089 } else { 1089 } else {
1090 callback.Run(false); 1090 callback.Run(false);
1091 } 1091 }
1092 } 1092 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698