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

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

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