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

Side by Side Diff: webkit/browser/fileapi/quota/quota_reservation_manager.h

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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 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 #ifndef WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_RESERVATION_MANAGER_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_RESERVATION_MANAGER_H_
6 #define WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_RESERVATION_MANAGER_H_ 6 #define WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_RESERVATION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/files/file.h" 13 #include "base/files/file.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 #include "webkit/browser/webkit_storage_browser_export.h" 17 #include "webkit/browser/webkit_storage_browser_export.h"
18 #include "webkit/common/fileapi/file_system_types.h" 18 #include "webkit/common/fileapi/file_system_types.h"
19 19
20 namespace content { 20 namespace content {
21 class QuotaReservationManagerTest; 21 class QuotaReservationManagerTest;
22 } 22 }
23 23
24 namespace fileapi { 24 namespace storage {
25 25
26 class QuotaReservation; 26 class QuotaReservation;
27 class QuotaReservationBuffer; 27 class QuotaReservationBuffer;
28 class OpenFileHandle; 28 class OpenFileHandle;
29 class OpenFileHandleContext; 29 class OpenFileHandleContext;
30 30
31 class WEBKIT_STORAGE_BROWSER_EXPORT QuotaReservationManager { 31 class WEBKIT_STORAGE_BROWSER_EXPORT QuotaReservationManager {
32 public: 32 public:
33 // Callback for ReserveQuota. When this callback returns false, ReserveQuota 33 // Callback for ReserveQuota. When this callback returns false, ReserveQuota
34 // operation should be reverted. 34 // operation should be reverted.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Not owned. The destructor of ReservationBuffer should erase itself from 115 // Not owned. The destructor of ReservationBuffer should erase itself from
116 // |reservation_buffers_| by calling ReleaseReservationBuffer. 116 // |reservation_buffers_| by calling ReleaseReservationBuffer.
117 ReservationBufferByOriginAndType reservation_buffers_; 117 ReservationBufferByOriginAndType reservation_buffers_;
118 118
119 base::SequenceChecker sequence_checker_; 119 base::SequenceChecker sequence_checker_;
120 base::WeakPtrFactory<QuotaReservationManager> weak_ptr_factory_; 120 base::WeakPtrFactory<QuotaReservationManager> weak_ptr_factory_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(QuotaReservationManager); 122 DISALLOW_COPY_AND_ASSIGN(QuotaReservationManager);
123 }; 123 };
124 124
125 } // namespace fileapi 125 } // namespace storage
126 126
127 #endif // WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_RESERVATION_MANAGER_H_ 127 #endif // WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_RESERVATION_MANAGER_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/quota/quota_reservation_buffer.cc ('k') | webkit/browser/fileapi/quota/quota_reservation_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698