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

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

Issue 10836275: Fix gdata includes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix gdata includes. Created 8 years, 4 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/gdata_files.h" 5 #include "chrome/browser/chromeos/gdata/gdata_files.h"
6 6
7 #include "base/message_loop_proxy.h"
8 #include "base/platform_file.h" 7 #include "base/platform_file.h"
9 #include "base/string_number_conversions.h"
10 #include "base/string_util.h" 8 #include "base/string_util.h"
11 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
12 #include "base/sequenced_task_runner.h"
13 #include "base/tracked_objects.h"
14 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
15 #include "chrome/browser/chromeos/gdata/gdata.pb.h" 11 #include "chrome/browser/chromeos/gdata/gdata.pb.h"
16 #include "chrome/browser/chromeos/gdata/gdata_directory_service.h" 12 #include "chrome/browser/chromeos/gdata/gdata_directory_service.h"
17 #include "chrome/browser/chromeos/gdata/gdata_util.h"
18 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" 13 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h"
19 #include "content/public/browser/browser_thread.h"
20 #include "net/base/escape.h" 14 #include "net/base/escape.h"
21 15
22 using content::BrowserThread;
23
24 namespace gdata { 16 namespace gdata {
25 namespace { 17 namespace {
26 18
27 const char kSlash[] = "/"; 19 const char kSlash[] = "/";
28 const char kEscapedSlash[] = "\xE2\x88\x95"; 20 const char kEscapedSlash[] = "\xE2\x88\x95";
29 21
30 // Extracts resource_id out of edit url. 22 // Extracts resource_id out of edit url.
31 std::string ExtractResourceId(const GURL& url) { 23 std::string ExtractResourceId(const GURL& url) {
32 return net::UnescapeURLComponent(url.ExtractFileName(), 24 return net::UnescapeURLComponent(url.ExtractFileName(),
33 net::UnescapeRule::URL_SPECIAL_CHARS); 25 net::UnescapeRule::URL_SPECIAL_CHARS);
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 DCHECK(ok); 527 DCHECK(ok);
536 } else if (dir) { 528 } else if (dir) {
537 GDataDirectoryProto dir_proto; 529 GDataDirectoryProto dir_proto;
538 dir->ToProto(&dir_proto); 530 dir->ToProto(&dir_proto);
539 const bool ok = dir_proto.SerializeToString(serialized_proto); 531 const bool ok = dir_proto.SerializeToString(serialized_proto);
540 DCHECK(ok); 532 DCHECK(ok);
541 } 533 }
542 } 534 }
543 535
544 } // namespace gdata 536 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_files.h ('k') | chrome/browser/chromeos/gdata/gdata_protocol_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698