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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |