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/chromeos/gdata/gdata_file_system_proxy.h" | 5 #include "chrome/browser/chromeos/gdata/gdata_file_system_proxy.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/chromeos/gdata/gdata.pb.h" | 14 #include "chrome/browser/chromeos/gdata/gdata.pb.h" |
15 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h" | 15 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h" |
16 #include "chrome/browser/chromeos/gdata/gdata_files.h" | |
17 #include "chrome/browser/chromeos/gdata/gdata_system_service.h" | 16 #include "chrome/browser/chromeos/gdata/gdata_system_service.h" |
18 #include "chrome/browser/chromeos/gdata/gdata_util.h" | 17 #include "chrome/browser/chromeos/gdata/gdata_util.h" |
19 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
20 #include "webkit/blob/shareable_file_reference.h" | 19 #include "webkit/blob/shareable_file_reference.h" |
21 #include "webkit/fileapi/file_system_file_util_proxy.h" | 20 #include "webkit/fileapi/file_system_file_util_proxy.h" |
22 #include "webkit/fileapi/file_system_types.h" | 21 #include "webkit/fileapi/file_system_types.h" |
23 #include "webkit/fileapi/file_system_url.h" | 22 #include "webkit/fileapi/file_system_url.h" |
24 #include "webkit/fileapi/file_system_util.h" | 23 #include "webkit/fileapi/file_system_util.h" |
25 | 24 |
26 using base::MessageLoopProxy; | 25 using base::MessageLoopProxy; |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 void GDataFileSystemProxy::CloseWritableSnapshotFile( | 733 void GDataFileSystemProxy::CloseWritableSnapshotFile( |
735 const FilePath& virtual_path, | 734 const FilePath& virtual_path, |
736 const FilePath& local_path) { | 735 const FilePath& local_path) { |
737 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 736 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
738 | 737 |
739 file_system_->CloseFile(virtual_path, | 738 file_system_->CloseFile(virtual_path, |
740 base::Bind(&EmitDebugLogForCloseFile, virtual_path)); | 739 base::Bind(&EmitDebugLogForCloseFile, virtual_path)); |
741 } | 740 } |
742 | 741 |
743 } // namespace gdata | 742 } // namespace gdata |
OLD | NEW |