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_util.h" | 5 #include "chrome/browser/chromeos/gdata/gdata_util.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
16 #include "base/json/json_reader.h" | 16 #include "base/json/json_reader.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/stringprintf.h" | 18 #include "base/stringprintf.h" |
19 #include "base/string_util.h" | 19 #include "base/string_util.h" |
20 #include "base/threading/sequenced_worker_pool.h" | 20 #include "base/threading/sequenced_worker_pool.h" |
21 #include "chrome/common/chrome_version_info.h" | 21 #include "chrome/common/chrome_version_info.h" |
22 #include "chrome/common/libxml_utils.h" | |
23 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
24 #include "chrome/common/url_constants.h" | 23 #include "chrome/common/url_constants.h" |
25 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" | 24 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" |
26 #include "chrome/browser/chromeos/gdata/gdata_system_service.h" | 25 #include "chrome/browser/chromeos/gdata/gdata_system_service.h" |
27 #include "chrome/browser/chromeos/login/user.h" | 26 #include "chrome/browser/chromeos/login/user.h" |
28 #include "chrome/browser/chromeos/login/user_manager.h" | 27 #include "chrome/browser/chromeos/login/user_manager.h" |
29 #include "chrome/browser/prefs/pref_service.h" | 28 #include "chrome/browser/prefs/pref_service.h" |
30 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" |
31 #include "chrome/browser/ui/browser.h" | 30 #include "chrome/browser/ui/browser.h" |
32 #include "chrome/browser/ui/browser_list.h" | 31 #include "chrome/browser/ui/browser_list.h" |
33 #include "content/public/browser/browser_thread.h" | 32 #include "content/public/browser/browser_thread.h" |
34 #include "content/public/browser/child_process_security_policy.h" | 33 #include "content/public/browser/child_process_security_policy.h" |
35 #include "net/base/escape.h" | 34 #include "net/base/escape.h" |
| 35 #include "third_party/libxml/chromium/libxml_utils.h" |
36 | 36 |
37 namespace gdata { | 37 namespace gdata { |
38 namespace util { | 38 namespace util { |
39 | 39 |
40 namespace { | 40 namespace { |
41 | 41 |
42 const char kGDataSpecialRootPath[] = "/special"; | 42 const char kGDataSpecialRootPath[] = "/special"; |
43 | 43 |
44 const char kGDataMountPointPath[] = "/special/drive"; | 44 const char kGDataMountPointPath[] = "/special/drive"; |
45 | 45 |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 // Assign the extracted extensions to md5 and extra_extension. | 351 // Assign the extracted extensions to md5 and extra_extension. |
352 int extension_count = extensions.size(); | 352 int extension_count = extensions.size(); |
353 *md5 = (extension_count > 0) ? extensions[extension_count - 1] : | 353 *md5 = (extension_count > 0) ? extensions[extension_count - 1] : |
354 std::string(); | 354 std::string(); |
355 *extra_extension = (extension_count > 1) ? extensions[extension_count - 2] : | 355 *extra_extension = (extension_count > 1) ? extensions[extension_count - 2] : |
356 std::string(); | 356 std::string(); |
357 } | 357 } |
358 | 358 |
359 } // namespace util | 359 } // namespace util |
360 } // namespace gdata | 360 } // namespace gdata |
OLD | NEW |