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

Side by Side Diff: webkit/browser/fileapi/file_system_usage_cache.cc

Issue 14895013: Move webkit/fileapi/file_system_mount_point_provider.h to webkit/browser/fileapi (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 "webkit/fileapi/file_system_usage_cache.h" 5 #include "webkit/browser/fileapi/file_system_usage_cache.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/pickle.h" 12 #include "base/pickle.h"
13 #include "base/stl_util.h" 13 #include "base/stl_util.h"
14 14
15 namespace fileapi { 15 namespace fileapi {
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 return !task_runner_ || task_runner_->RunsTasksOnCurrentThread(); 302 return !task_runner_ || task_runner_->RunsTasksOnCurrentThread();
303 } 303 }
304 304
305 bool FileSystemUsageCache::HasCacheFileHandle(const base::FilePath& file_path) { 305 bool FileSystemUsageCache::HasCacheFileHandle(const base::FilePath& file_path) {
306 DCHECK(CalledOnValidThread()); 306 DCHECK(CalledOnValidThread());
307 DCHECK_LE(cache_files_.size(), kMaxHandleCacheSize); 307 DCHECK_LE(cache_files_.size(), kMaxHandleCacheSize);
308 return ContainsKey(cache_files_, file_path); 308 return ContainsKey(cache_files_, file_path);
309 } 309 }
310 310
311 } // namespace fileapi 311 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698