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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_directory_service.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_directory_service.h" 5 #include "chrome/browser/chromeos/gdata/gdata_directory_service.h"
6 6
7 #include <leveldb/db.h> 7 #include <leveldb/db.h>
8 8
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "base/platform_file.h"
10 #include "base/string_number_conversions.h" 11 #include "base/string_number_conversions.h"
12 #include "base/string_util.h"
13 #include "base/stringprintf.h"
11 #include "base/sequenced_task_runner.h" 14 #include "base/sequenced_task_runner.h"
12 #include "base/tracked_objects.h" 15 #include "base/tracked_objects.h"
16 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/chromeos/gdata/gdata.pb.h" 17 #include "chrome/browser/chromeos/gdata/gdata.pb.h"
14 #include "chrome/browser/chromeos/gdata/gdata_files.h"
15 #include "chrome/browser/chromeos/gdata/gdata_util.h" 18 #include "chrome/browser/chromeos/gdata/gdata_util.h"
16 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" 19 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h"
17 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
21 #include "net/base/escape.h"
18 22
19 using content::BrowserThread; 23 using content::BrowserThread;
20 24
21 namespace gdata { 25 namespace gdata {
22 namespace { 26 namespace {
23 27
24 // m: prefix for filesystem metadata db keys, version and largest_changestamp. 28 // m: prefix for filesystem metadata db keys, version and largest_changestamp.
25 // r: prefix for resource id db keys. 29 // r: prefix for resource id db keys.
26 const char kDBKeyLargestChangestamp[] = "m:largest_changestamp"; 30 const char kDBKeyLargestChangestamp[] = "m:largest_changestamp";
27 const char kDBKeyVersion[] = "m:version"; 31 const char kDBKeyVersion[] = "m:version";
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 DCHECK(result.get()); 758 DCHECK(result.get());
755 759
756 result->second.path = second_path; 760 result->second.path = second_path;
757 result->second.error = error; 761 result->second.error = error;
758 result->second.proto = entry_proto.Pass(); 762 result->second.proto = entry_proto.Pass();
759 763
760 callback.Run(result.Pass()); 764 callback.Run(result.Pass());
761 } 765 }
762 766
763 } // namespace gdata 767 } // namespace gdata
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698