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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2558673003: Move RequestQuotaPermission from RenderView to RenderFrame. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « content/public/common/storage_quota_params.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 4444 matching lines...) Expand 10 before | Expand all | Expand 10 after
4455 blink::WebStorageQuotaType type, 4455 blink::WebStorageQuotaType type,
4456 unsigned long long requested_size, 4456 unsigned long long requested_size,
4457 blink::WebStorageQuotaCallbacks callbacks) { 4457 blink::WebStorageQuotaCallbacks callbacks) {
4458 WebSecurityOrigin origin = frame_->document().getSecurityOrigin(); 4458 WebSecurityOrigin origin = frame_->document().getSecurityOrigin();
4459 if (origin.isUnique()) { 4459 if (origin.isUnique()) {
4460 // Unique origins cannot store persistent state. 4460 // Unique origins cannot store persistent state.
4461 callbacks.didFail(blink::WebStorageQuotaErrorAbort); 4461 callbacks.didFail(blink::WebStorageQuotaErrorAbort);
4462 return; 4462 return;
4463 } 4463 }
4464 ChildThreadImpl::current()->quota_dispatcher()->RequestStorageQuota( 4464 ChildThreadImpl::current()->quota_dispatcher()->RequestStorageQuota(
4465 render_view_->GetRoutingID(), url::Origin(origin).GetURL(), 4465 routing_id_, url::Origin(origin).GetURL(),
4466 static_cast<storage::StorageType>(type), requested_size, 4466 static_cast<storage::StorageType>(type), requested_size,
4467 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); 4467 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
4468 } 4468 }
4469 4469
4470 blink::WebPresentationClient* RenderFrameImpl::presentationClient() { 4470 blink::WebPresentationClient* RenderFrameImpl::presentationClient() {
4471 if (!presentation_dispatcher_) 4471 if (!presentation_dispatcher_)
4472 presentation_dispatcher_ = new PresentationDispatcher(this); 4472 presentation_dispatcher_ = new PresentationDispatcher(this);
4473 return presentation_dispatcher_; 4473 return presentation_dispatcher_;
4474 } 4474 }
4475 4475
(...skipping 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after
6671 // event target. Potentially a Pepper plugin will receive the event. 6671 // event target. Potentially a Pepper plugin will receive the event.
6672 // In order to tell whether a plugin gets the last mouse event and which it 6672 // In order to tell whether a plugin gets the last mouse event and which it
6673 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6673 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6674 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6674 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6675 // |pepper_last_mouse_event_target_|. 6675 // |pepper_last_mouse_event_target_|.
6676 pepper_last_mouse_event_target_ = nullptr; 6676 pepper_last_mouse_event_target_ = nullptr;
6677 #endif 6677 #endif
6678 } 6678 }
6679 6679
6680 } // namespace content 6680 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/storage_quota_params.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698