| 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/document_entry_conversion.h" | 5 #include "chrome/browser/chromeos/gdata/document_entry_conversion.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/chromeos/gdata/drive.pb.h" | 10 #include "chrome/browser/chromeos/gdata/drive.pb.h" |
| 11 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" | 11 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" |
| 12 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" | 12 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "net/base/escape.h" | 14 #include "net/base/escape.h" |
| 15 | 15 |
| 16 namespace gdata { | 16 namespace gdata { |
| 17 | 17 |
| 18 DriveEntryProto ConvertDocumentEntryToDriveEntryProto( | 18 DriveEntryProto ConvertDocumentEntryToDriveEntryProto( |
| 19 const DocumentEntry& doc) { | 19 const DocumentEntry& doc) { |
| 20 DriveEntryProto entry_proto; | 20 DriveEntryProto entry_proto; |
| 21 | 21 |
| 22 // For regular files, the 'filename' and 'title' attribute in the metadata | 22 // For regular files, the 'filename' and 'title' attribute in the metadata |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 if (upload_link) | 92 if (upload_link) |
| 93 entry_proto.set_upload_url(upload_link->href().spec()); | 93 entry_proto.set_upload_url(upload_link->href().spec()); |
| 94 } else { | 94 } else { |
| 95 NOTREACHED() << "Unknown DocumentEntry type"; | 95 NOTREACHED() << "Unknown DocumentEntry type"; |
| 96 } | 96 } |
| 97 | 97 |
| 98 return entry_proto; | 98 return entry_proto; |
| 99 } | 99 } |
| 100 | 100 |
| 101 } // namespace gdata | 101 } // namespace gdata |
| OLD | NEW |