OLD | NEW |
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/sync_file_system/local_file_sync_service.h" | 5 #include "chrome/browser/sync_file_system/local_file_sync_service.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
9 #include "chrome/browser/extensions/extension_system.h" | 9 #include "chrome/browser/extensions/extension_system.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/sync_file_system/local_change_processor.h" | 11 #include "chrome/browser/sync_file_system/local_change_processor.h" |
12 #include "chrome/browser/sync_file_system/logger.h" | 12 #include "chrome/browser/sync_file_system/logger.h" |
13 #include "content/public/browser/browser_context.h" | 13 #include "content/public/browser/browser_context.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/site_instance.h" | 15 #include "content/public/browser/site_instance.h" |
16 #include "content/public/browser/storage_partition.h" | 16 #include "content/public/browser/storage_partition.h" |
17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
18 #include "webkit/browser/fileapi/file_system_context.h" | 18 #include "webkit/browser/fileapi/file_system_context.h" |
19 #include "webkit/browser/fileapi/file_system_url.h" | 19 #include "webkit/browser/fileapi/file_system_url.h" |
20 #include "webkit/fileapi/syncable/file_change.h" | 20 #include "webkit/browser/fileapi/syncable/file_change.h" |
21 #include "webkit/fileapi/syncable/local_file_change_tracker.h" | 21 #include "webkit/browser/fileapi/syncable/local_file_change_tracker.h" |
22 #include "webkit/fileapi/syncable/local_file_sync_context.h" | 22 #include "webkit/browser/fileapi/syncable/local_file_sync_context.h" |
23 #include "webkit/fileapi/syncable/sync_file_metadata.h" | 23 #include "webkit/browser/fileapi/syncable/sync_file_metadata.h" |
24 | 24 |
25 using content::BrowserThread; | 25 using content::BrowserThread; |
26 using fileapi::FileSystemURL; | 26 using fileapi::FileSystemURL; |
27 | 27 |
28 namespace sync_file_system { | 28 namespace sync_file_system { |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 void PrepareForProcessRemoteChangeCallbackAdapter( | 32 void PrepareForProcessRemoteChangeCallbackAdapter( |
33 const RemoteChangeProcessor::PrepareChangeCallback& callback, | 33 const RemoteChangeProcessor::PrepareChangeCallback& callback, |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 changes.front(), | 419 changes.front(), |
420 sync_file_info.local_file_path, | 420 sync_file_info.local_file_path, |
421 sync_file_info.metadata, | 421 sync_file_info.metadata, |
422 url, | 422 url, |
423 base::Bind(&LocalFileSyncService::ProcessNextChangeForURL, | 423 base::Bind(&LocalFileSyncService::ProcessNextChangeForURL, |
424 AsWeakPtr(), sync_file_info, | 424 AsWeakPtr(), sync_file_info, |
425 changes.front(), changes.PopAndGetNewList())); | 425 changes.front(), changes.PopAndGetNewList())); |
426 } | 426 } |
427 | 427 |
428 } // namespace sync_file_system | 428 } // namespace sync_file_system |
OLD | NEW |