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_directory_service.h" | 5 #include "chrome/browser/chromeos/gdata/gdata_directory_service.h" |
6 | 6 |
7 #include <leveldb/db.h> | 7 #include <leveldb/db.h> |
8 | 8 |
9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
10 #include "base/platform_file.h" | |
11 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
12 #include "base/string_util.h" | |
13 #include "base/stringprintf.h" | |
14 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
15 #include "base/tracked_objects.h" | 12 #include "base/tracked_objects.h" |
16 #include "base/utf_string_conversions.h" | |
17 #include "chrome/browser/chromeos/gdata/gdata.pb.h" | 13 #include "chrome/browser/chromeos/gdata/gdata.pb.h" |
| 14 #include "chrome/browser/chromeos/gdata/gdata_files.h" |
18 #include "chrome/browser/chromeos/gdata/gdata_util.h" | 15 #include "chrome/browser/chromeos/gdata/gdata_util.h" |
19 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" | 16 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" |
20 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
21 #include "net/base/escape.h" | |
22 | 18 |
23 using content::BrowserThread; | 19 using content::BrowserThread; |
24 | 20 |
25 namespace gdata { | 21 namespace gdata { |
26 namespace { | 22 namespace { |
27 | 23 |
28 // m: prefix for filesystem metadata db keys, version and largest_changestamp. | 24 // m: prefix for filesystem metadata db keys, version and largest_changestamp. |
29 // r: prefix for resource id db keys. | 25 // r: prefix for resource id db keys. |
30 const char kDBKeyLargestChangestamp[] = "m:largest_changestamp"; | 26 const char kDBKeyLargestChangestamp[] = "m:largest_changestamp"; |
31 const char kDBKeyVersion[] = "m:version"; | 27 const char kDBKeyVersion[] = "m:version"; |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 DCHECK(result.get()); | 754 DCHECK(result.get()); |
759 | 755 |
760 result->second.path = second_path; | 756 result->second.path = second_path; |
761 result->second.error = error; | 757 result->second.error = error; |
762 result->second.proto = entry_proto.Pass(); | 758 result->second.proto = entry_proto.Pass(); |
763 | 759 |
764 callback.Run(result.Pass()); | 760 callback.Run(result.Pass()); |
765 } | 761 } |
766 | 762 |
767 } // namespace gdata | 763 } // namespace gdata |
OLD | NEW |