| OLD | NEW |
| 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 "content/browser/renderer_host/quota_dispatcher_host.h" | 5 #include "content/browser/renderer_host/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 "content/common/quota_messages.h" | 9 #include "content/common/quota_messages.h" |
| 10 #include "content/public/browser/quota_permission_context.h" | 10 #include "content/public/browser/quota_permission_context.h" |
| 11 #include "googleurl/src/gurl.h" | |
| 12 #include "net/base/net_util.h" | 11 #include "net/base/net_util.h" |
| 12 #include "url/gurl.h" |
| 13 #include "webkit/browser/quota/quota_manager.h" | 13 #include "webkit/browser/quota/quota_manager.h" |
| 14 | 14 |
| 15 using quota::QuotaClient; | 15 using quota::QuotaClient; |
| 16 using quota::QuotaManager; | 16 using quota::QuotaManager; |
| 17 using quota::QuotaStatusCode; | 17 using quota::QuotaStatusCode; |
| 18 using quota::StorageType; | 18 using quota::StorageType; |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 | 21 |
| 22 // Created one per request to carry the request's request_id around. | 22 // Created one per request to carry the request's request_id around. |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 Send(new QuotaMsg_DidFail(request_id, quota::kQuotaErrorNotSupported)); | 249 Send(new QuotaMsg_DidFail(request_id, quota::kQuotaErrorNotSupported)); |
| 250 return; | 250 return; |
| 251 } | 251 } |
| 252 | 252 |
| 253 RequestQuotaDispatcher* dispatcher = new RequestQuotaDispatcher( | 253 RequestQuotaDispatcher* dispatcher = new RequestQuotaDispatcher( |
| 254 this, request_id, origin, type, requested_size, render_view_id); | 254 this, request_id, origin, type, requested_size, render_view_id); |
| 255 dispatcher->Start(); | 255 dispatcher->Start(); |
| 256 } | 256 } |
| 257 | 257 |
| 258 } // namespace content | 258 } // namespace content |
| OLD | NEW |