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

Side by Side Diff: chrome/browser/sync_file_system/drive_metadata_store.cc

Issue 15806012: Move webkit/fileapi/syncable/* code to webkit/browser/fileapi (final!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/sync_file_system/drive_metadata_store.h" 5 #include "chrome/browser/sync_file_system/drive_metadata_store.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/message_loop/message_loop_proxy.h" 14 #include "base/message_loop/message_loop_proxy.h"
15 #include "base/sequenced_task_runner.h" 15 #include "base/sequenced_task_runner.h"
16 #include "base/stl_util.h" 16 #include "base/stl_util.h"
17 #include "base/string_util.h" 17 #include "base/string_util.h"
18 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
19 #include "base/task_runner_util.h" 19 #include "base/task_runner_util.h"
20 #include "chrome/browser/sync_file_system/drive_file_sync_service.h" 20 #include "chrome/browser/sync_file_system/drive_file_sync_service.h"
21 #include "chrome/browser/sync_file_system/logger.h" 21 #include "chrome/browser/sync_file_system/logger.h"
22 #include "chrome/browser/sync_file_system/sync_file_system.pb.h" 22 #include "chrome/browser/sync_file_system/sync_file_system.pb.h"
23 #include "googleurl/src/gurl.h" 23 #include "googleurl/src/gurl.h"
24 #include "third_party/leveldatabase/src/include/leveldb/db.h" 24 #include "third_party/leveldatabase/src/include/leveldb/db.h"
25 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" 25 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h"
26 #include "webkit/browser/fileapi/file_system_url.h" 26 #include "webkit/browser/fileapi/file_system_url.h"
27 #include "webkit/browser/fileapi/syncable/syncable_file_system_util.h"
27 #include "webkit/common/fileapi/file_system_util.h" 28 #include "webkit/common/fileapi/file_system_util.h"
28 #include "webkit/fileapi/syncable/syncable_file_system_util.h"
29 29
30 using fileapi::FileSystemURL; 30 using fileapi::FileSystemURL;
31 31
32 namespace sync_file_system { 32 namespace sync_file_system {
33 33
34 typedef DriveMetadataStore::ResourceIdByOrigin ResourceIdByOrigin; 34 typedef DriveMetadataStore::ResourceIdByOrigin ResourceIdByOrigin;
35 typedef DriveMetadataStore::OriginByResourceId OriginByResourceId; 35 typedef DriveMetadataStore::OriginByResourceId OriginByResourceId;
36 36
37 const base::FilePath::CharType DriveMetadataStore::kDatabaseName[] = 37 const base::FilePath::CharType DriveMetadataStore::kDatabaseName[] =
38 FILE_PATH_LITERAL("DriveMetadata"); 38 FILE_PATH_LITERAL("DriveMetadata");
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 DCHECK(origin.is_valid()); 1194 DCHECK(origin.is_valid());
1195 bool result = disabled_origins->insert( 1195 bool result = disabled_origins->insert(
1196 std::make_pair(origin, itr->value().ToString())).second; 1196 std::make_pair(origin, itr->value().ToString())).second;
1197 DCHECK(result); 1197 DCHECK(result);
1198 } 1198 }
1199 1199
1200 return SYNC_STATUS_OK; 1200 return SYNC_STATUS_OK;
1201 } 1201 }
1202 1202
1203 } // namespace sync_file_system 1203 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698