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

Side by Side Diff: storage/browser/fileapi/recursive_operation_delegate.cc

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/browser/fileapi/recursive_operation_delegate.h" 5 #include "storage/browser/fileapi/recursive_operation_delegate.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "webkit/browser/fileapi/file_system_context.h" 8 #include "storage/browser/fileapi/file_system_context.h"
9 #include "webkit/browser/fileapi/file_system_operation_runner.h" 9 #include "storage/browser/fileapi/file_system_operation_runner.h"
10 10
11 namespace storage { 11 namespace storage {
12 12
13 namespace { 13 namespace {
14 // Don't start too many inflight operations. 14 // Don't start too many inflight operations.
15 const int kMaxInflightOperations = 5; 15 const int kMaxInflightOperations = 5;
16 } 16 }
17 17
18 RecursiveOperationDelegate::RecursiveOperationDelegate( 18 RecursiveOperationDelegate::RecursiveOperationDelegate(
19 FileSystemContext* file_system_context) 19 FileSystemContext* file_system_context)
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 void RecursiveOperationDelegate::Done(base::File::Error error) { 231 void RecursiveOperationDelegate::Done(base::File::Error error) {
232 if (canceled_ && error == base::File::FILE_OK) { 232 if (canceled_ && error == base::File::FILE_OK) {
233 callback_.Run(base::File::FILE_ERROR_ABORT); 233 callback_.Run(base::File::FILE_ERROR_ABORT);
234 } else { 234 } else {
235 callback_.Run(error); 235 callback_.Run(error);
236 } 236 }
237 } 237 }
238 238
239 } // namespace storage 239 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/fileapi/recursive_operation_delegate.h ('k') | storage/browser/fileapi/remove_operation_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698