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

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

Issue 15859007: Move browser-specific FileAPI code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dump_file_system build fix Created 7 years, 6 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/sync_file_system.pb.h" 21 #include "chrome/browser/sync_file_system/sync_file_system.pb.h"
22 #include "googleurl/src/gurl.h" 22 #include "googleurl/src/gurl.h"
23 #include "third_party/leveldatabase/src/include/leveldb/db.h" 23 #include "third_party/leveldatabase/src/include/leveldb/db.h"
24 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" 24 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h"
25 #include "webkit/fileapi/file_system_url.h" 25 #include "webkit/browser/fileapi/file_system_url.h"
26 #include "webkit/fileapi/file_system_util.h" 26 #include "webkit/fileapi/file_system_util.h"
27 #include "webkit/fileapi/syncable/syncable_file_system_util.h" 27 #include "webkit/fileapi/syncable/syncable_file_system_util.h"
28 28
29 using fileapi::FileSystemURL; 29 using fileapi::FileSystemURL;
30 30
31 namespace sync_file_system { 31 namespace sync_file_system {
32 32
33 typedef DriveMetadataStore::ResourceIdByOrigin ResourceIdByOrigin; 33 typedef DriveMetadataStore::ResourceIdByOrigin ResourceIdByOrigin;
34 typedef DriveMetadataStore::OriginByResourceId OriginByResourceId; 34 typedef DriveMetadataStore::OriginByResourceId OriginByResourceId;
35 35
(...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 DCHECK(origin.is_valid()); 1188 DCHECK(origin.is_valid());
1189 bool result = disabled_origins->insert( 1189 bool result = disabled_origins->insert(
1190 std::make_pair(origin, itr->value().ToString())).second; 1190 std::make_pair(origin, itr->value().ToString())).second;
1191 DCHECK(result); 1191 DCHECK(result);
1192 } 1192 }
1193 1193
1194 return SYNC_STATUS_OK; 1194 return SYNC_STATUS_OK;
1195 } 1195 }
1196 1196
1197 } // namespace sync_file_system 1197 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698