| 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/extensions/file_browser_private_api.h" | 5 #include "chrome/browser/chromeos/extensions/file_browser_private_api.h" |
| 6 | 6 |
| 7 #include <sys/stat.h> | 7 #include <sys/stat.h> |
| 8 #include <sys/statvfs.h> | 8 #include <sys/statvfs.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 #include <utime.h> | 10 #include <utime.h> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/base64.h" | 13 #include "base/base64.h" |
| 14 #include "base/bind.h" | 14 #include "base/bind.h" |
| 15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
| 16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
| 17 #include "base/i18n/case_conversion.h" | 17 #include "base/i18n/case_conversion.h" |
| 18 #include "base/json/json_writer.h" | 18 #include "base/json/json_writer.h" |
| 19 #include "base/logging.h" | 19 #include "base/logging.h" |
| 20 #include "base/memory/scoped_vector.h" | 20 #include "base/memory/scoped_vector.h" |
| 21 #include "base/memory/singleton.h" | 21 #include "base/memory/singleton.h" |
| 22 #include "base/string_split.h" | |
| 23 #include "base/stringprintf.h" | 22 #include "base/stringprintf.h" |
| 23 #include "base/strings/string_split.h" |
| 24 #include "base/time.h" | 24 #include "base/time.h" |
| 25 #include "base/utf_string_conversions.h" | 25 #include "base/utf_string_conversions.h" |
| 26 #include "base/values.h" | 26 #include "base/values.h" |
| 27 #include "chrome/browser/chromeos/drive/drive.pb.h" | 27 #include "chrome/browser/chromeos/drive/drive.pb.h" |
| 28 #include "chrome/browser/chromeos/drive/drive_cache.h" | 28 #include "chrome/browser/chromeos/drive/drive_cache.h" |
| 29 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h" | 29 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h" |
| 30 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" | 30 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" |
| 31 #include "chrome/browser/chromeos/drive/drive_system_service.h" | 31 #include "chrome/browser/chromeos/drive/drive_system_service.h" |
| 32 #include "chrome/browser/chromeos/drive/drive_webapps_registry.h" | 32 #include "chrome/browser/chromeos/drive/drive_webapps_registry.h" |
| 33 #include "chrome/browser/chromeos/drive/search_metadata.h" | 33 #include "chrome/browser/chromeos/drive/search_metadata.h" |
| (...skipping 3202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3236 this, name.size())); | 3236 this, name.size())); |
| 3237 return true; | 3237 return true; |
| 3238 } | 3238 } |
| 3239 | 3239 |
| 3240 void ValidatePathNameLengthFunction::OnFilePathLimitRetrieved( | 3240 void ValidatePathNameLengthFunction::OnFilePathLimitRetrieved( |
| 3241 size_t current_length, | 3241 size_t current_length, |
| 3242 size_t max_length) { | 3242 size_t max_length) { |
| 3243 SetResult(new base::FundamentalValue(current_length <= max_length)); | 3243 SetResult(new base::FundamentalValue(current_length <= max_length)); |
| 3244 SendResponse(true); | 3244 SendResponse(true); |
| 3245 } | 3245 } |
| OLD | NEW |