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_files.h" | 5 #include "chrome/browser/chromeos/gdata/gdata_files.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
| 9 #include "base/platform_file.h" |
| 10 #include "base/string_util.h" |
| 11 #include "base/stringprintf.h" |
9 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
10 #include "base/platform_file.h" | |
11 #include "base/stringprintf.h" | |
12 #include "base/string_util.h" | |
13 #include "chrome/browser/chromeos/gdata/gdata.pb.h" | 13 #include "chrome/browser/chromeos/gdata/gdata.pb.h" |
14 #include "chrome/browser/chromeos/gdata/gdata_parser.h" | |
15 #include "chrome/browser/chromeos/gdata/gdata_util.h" | 14 #include "chrome/browser/chromeos/gdata/gdata_util.h" |
| 15 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" |
16 #include "net/base/escape.h" | 16 #include "net/base/escape.h" |
17 | 17 |
18 namespace gdata { | 18 namespace gdata { |
19 namespace { | 19 namespace { |
20 | 20 |
21 const char kSlash[] = "/"; | 21 const char kSlash[] = "/"; |
22 const char kEscapedSlash[] = "\xE2\x88\x95"; | 22 const char kEscapedSlash[] = "\xE2\x88\x95"; |
23 | 23 |
24 // Extracts resource_id out of edit url. | 24 // Extracts resource_id out of edit url. |
25 std::string ExtractResourceId(const GURL& url) { | 25 std::string ExtractResourceId(const GURL& url) { |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 return false; | 766 return false; |
767 | 767 |
768 if (!FromProto(proto)) | 768 if (!FromProto(proto)) |
769 return false; | 769 return false; |
770 | 770 |
771 set_origin(FROM_CACHE); | 771 set_origin(FROM_CACHE); |
772 return true; | 772 return true; |
773 } | 773 } |
774 | 774 |
775 } // namespace gdata | 775 } // namespace gdata |
OLD | NEW |