| 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/drive_files.h" | 5 #include "chrome/browser/chromeos/gdata/drive_files.h" |
| 6 | 6 |
| 7 #include "base/platform_file.h" | 7 #include "base/platform_file.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/chromeos/gdata/drive.pb.h" | 11 #include "chrome/browser/chromeos/gdata/drive.pb.h" |
| 12 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" | 12 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" |
| 13 #include "chrome/browser/chromeos/gdata/drive_resource_metadata.h" | 13 #include "chrome/browser/chromeos/gdata/drive_resource_metadata.h" |
| 14 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" | 14 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
| 15 #include "net/base/escape.h" | 15 #include "net/base/escape.h" |
| 16 | 16 |
| 17 namespace gdata { | 17 namespace gdata { |
| 18 | 18 |
| 19 // DriveEntry class. | 19 // DriveEntry class. |
| 20 | 20 |
| 21 DriveEntry::DriveEntry(DriveResourceMetadata* resource_metadata) | 21 DriveEntry::DriveEntry(DriveResourceMetadata* resource_metadata) |
| 22 : parent_(NULL), | 22 : parent_(NULL), |
| 23 resource_metadata_(resource_metadata), | 23 resource_metadata_(resource_metadata), |
| 24 deleted_(false) { | 24 deleted_(false) { |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 DCHECK(ok); | 492 DCHECK(ok); |
| 493 } else if (dir) { | 493 } else if (dir) { |
| 494 DriveDirectoryProto dir_proto; | 494 DriveDirectoryProto dir_proto; |
| 495 dir->ToProto(&dir_proto); | 495 dir->ToProto(&dir_proto); |
| 496 const bool ok = dir_proto.SerializeToString(serialized_proto); | 496 const bool ok = dir_proto.SerializeToString(serialized_proto); |
| 497 DCHECK(ok); | 497 DCHECK(ok); |
| 498 } | 498 } |
| 499 } | 499 } |
| 500 | 500 |
| 501 } // namespace gdata | 501 } // namespace gdata |
| OLD | NEW |