OLD | NEW |
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 "content/browser/quota_dispatcher_host.h" | 5 #include "content/browser/quota_dispatcher_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/numerics/safe_conversions.h" | 9 #include "base/numerics/safe_conversions.h" |
10 #include "content/common/quota_messages.h" | 10 #include "content/common/quota_messages.h" |
11 #include "content/public/browser/quota_permission_context.h" | 11 #include "content/public/browser/quota_permission_context.h" |
12 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
14 #include "webkit/browser/quota/quota_manager.h" | 14 #include "storage/browser/quota/quota_manager.h" |
15 | 15 |
16 using quota::QuotaClient; | 16 using quota::QuotaClient; |
17 using quota::QuotaManager; | 17 using quota::QuotaManager; |
18 using quota::QuotaStatusCode; | 18 using quota::QuotaStatusCode; |
19 using quota::StorageType; | 19 using quota::StorageType; |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 // Created one per request to carry the request's request_id around. | 23 // Created one per request to carry the request's request_id around. |
24 // Dispatches requests from renderer/worker to the QuotaManager and | 24 // Dispatches requests from renderer/worker to the QuotaManager and |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 return; | 253 return; |
254 } | 254 } |
255 | 255 |
256 RequestQuotaDispatcher* dispatcher = | 256 RequestQuotaDispatcher* dispatcher = |
257 new RequestQuotaDispatcher(weak_factory_.GetWeakPtr(), | 257 new RequestQuotaDispatcher(weak_factory_.GetWeakPtr(), |
258 params); | 258 params); |
259 dispatcher->Start(); | 259 dispatcher->Start(); |
260 } | 260 } |
261 | 261 |
262 } // namespace content | 262 } // namespace content |
OLD | NEW |