Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: chrome/browser/chromeos/gdata/document_entry_conversion.cc

Issue 10920091: Move Drive API files to google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reflect comments Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/auth_service.cc ('k') | chrome/browser/chromeos/gdata/document_entry_conversion_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698