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

Side by Side Diff: storage/browser/fileapi/quota/quota_reservation_buffer.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/quota/quota_reservation_buffer.h" 5 #include "storage/browser/fileapi/quota/quota_reservation_buffer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "webkit/browser/fileapi/quota/open_file_handle.h" 8 #include "storage/browser/fileapi/quota/open_file_handle.h"
9 #include "webkit/browser/fileapi/quota/open_file_handle_context.h" 9 #include "storage/browser/fileapi/quota/open_file_handle_context.h"
10 #include "webkit/browser/fileapi/quota/quota_reservation.h" 10 #include "storage/browser/fileapi/quota/quota_reservation.h"
11 11
12 namespace storage { 12 namespace storage {
13 13
14 QuotaReservationBuffer::QuotaReservationBuffer( 14 QuotaReservationBuffer::QuotaReservationBuffer(
15 base::WeakPtr<QuotaReservationManager> reservation_manager, 15 base::WeakPtr<QuotaReservationManager> reservation_manager,
16 const GURL& origin, 16 const GURL& origin,
17 FileSystemType type) 17 FileSystemType type)
18 : reservation_manager_(reservation_manager), 18 : reservation_manager_(reservation_manager),
19 origin_(origin), 19 origin_(origin),
20 type_(type), 20 type_(type),
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 int64 delta_unused) { 96 int64 delta_unused) {
97 DCHECK(origin.is_valid()); 97 DCHECK(origin.is_valid());
98 if (error == base::File::FILE_OK && reservation_manager) { 98 if (error == base::File::FILE_OK && reservation_manager) {
99 reservation_manager->DecrementDirtyCount(origin, type); 99 reservation_manager->DecrementDirtyCount(origin, type);
100 return true; 100 return true;
101 } 101 }
102 return false; 102 return false;
103 } 103 }
104 104
105 } // namespace storage 105 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/fileapi/quota/quota_reservation_buffer.h ('k') | storage/browser/fileapi/quota/quota_reservation_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698