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

Side by Side Diff: content/browser/renderer_host/quota_dispatcher_host.cc

Issue 9566035: Move QuotaPermissionContext to content/public/browser and put it in the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 (c) 2011 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/browser/quota_permission_context.h"
10 #include "content/common/quota_messages.h" 9 #include "content/common/quota_messages.h"
10 #include "content/public/browser/quota_permission_context.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 #include "net/base/net_util.h" 12 #include "net/base/net_util.h"
13 #include "webkit/quota/quota_manager.h" 13 #include "webkit/quota/quota_manager.h"
14 14
15 using content::QuotaPermissionContext;
15 using quota::QuotaClient; 16 using quota::QuotaClient;
16 using quota::QuotaManager; 17 using quota::QuotaManager;
17 using quota::QuotaStatusCode; 18 using quota::QuotaStatusCode;
18 using quota::StorageType; 19 using quota::StorageType;
19 20
20 // Created one per request to carry the request's request_id around. 21 // Created one per request to carry the request's request_id around.
21 // Dispatches requests from renderer/worker to the QuotaManager and 22 // Dispatches requests from renderer/worker to the QuotaManager and
22 // sends back the response to the renderer/worker. 23 // sends back the response to the renderer/worker.
23 class QuotaDispatcherHost::RequestDispatcher { 24 class QuotaDispatcherHost::RequestDispatcher {
24 public: 25 public:
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 type != quota::kStorageTypePersistent) { 247 type != quota::kStorageTypePersistent) {
247 // Unsupported storage types. 248 // Unsupported storage types.
248 Send(new QuotaMsg_DidFail(request_id, quota::kQuotaErrorNotSupported)); 249 Send(new QuotaMsg_DidFail(request_id, quota::kQuotaErrorNotSupported));
249 return; 250 return;
250 } 251 }
251 252
252 RequestQuotaDispatcher* dispatcher = new RequestQuotaDispatcher( 253 RequestQuotaDispatcher* dispatcher = new RequestQuotaDispatcher(
253 this, request_id, origin, type, requested_size, render_view_id); 254 this, request_id, origin, type, requested_size, render_view_id);
254 dispatcher->Start(); 255 dispatcher->Start();
255 } 256 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698