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 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 3678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3689 bool RenderFrameImpl::isControlledByServiceWorker(WebDataSource& data_source) { | 3689 bool RenderFrameImpl::isControlledByServiceWorker(WebDataSource& data_source) { |
3690 ServiceWorkerNetworkProvider* provider = | 3690 ServiceWorkerNetworkProvider* provider = |
3691 ServiceWorkerNetworkProvider::FromDocumentState( | 3691 ServiceWorkerNetworkProvider::FromDocumentState( |
3692 DocumentState::FromDataSource(&data_source)); | 3692 DocumentState::FromDataSource(&data_source)); |
3693 if (!provider->context()) | 3693 if (!provider->context()) |
3694 return false; | 3694 return false; |
3695 return provider->context()->controller_handle_id() != | 3695 return provider->context()->controller_handle_id() != |
3696 kInvalidServiceWorkerHandleId; | 3696 kInvalidServiceWorkerHandleId; |
3697 } | 3697 } |
3698 | 3698 |
3699 int64_t RenderFrameImpl::serviceWorkerID(WebDataSource& data_source) { | 3699 std::string RenderFrameImpl::serviceWorkerID(WebDataSource& data_source) { |
3700 ServiceWorkerNetworkProvider* provider = | 3700 ServiceWorkerNetworkProvider* provider = |
3701 ServiceWorkerNetworkProvider::FromDocumentState( | 3701 ServiceWorkerNetworkProvider::FromDocumentState( |
3702 DocumentState::FromDataSource(&data_source)); | 3702 DocumentState::FromDataSource(&data_source)); |
3703 if (provider->context() && provider->context()->controller()) | 3703 if (provider->context() && provider->context()->controller()) |
3704 return provider->context()->controller()->version_id(); | 3704 return provider->context()->controller()->version_uuid(); |
3705 return kInvalidServiceWorkerVersionId; | 3705 return std::string(); |
3706 } | 3706 } |
3707 | 3707 |
3708 void RenderFrameImpl::postAccessibilityEvent(const blink::WebAXObject& obj, | 3708 void RenderFrameImpl::postAccessibilityEvent(const blink::WebAXObject& obj, |
3709 blink::WebAXEvent event) { | 3709 blink::WebAXEvent event) { |
3710 HandleWebAccessibilityEvent(obj, event); | 3710 HandleWebAccessibilityEvent(obj, event); |
3711 } | 3711 } |
3712 | 3712 |
3713 void RenderFrameImpl::handleAccessibilityFindInPageResult( | 3713 void RenderFrameImpl::handleAccessibilityFindInPageResult( |
3714 int identifier, | 3714 int identifier, |
3715 int match_index, | 3715 int match_index, |
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5002 cdm_manager_ | 5002 cdm_manager_ |
5003 #endif | 5003 #endif |
5004 )); | 5004 )); |
5005 #endif // defined(ENABLE_MOJO_MEDIA) | 5005 #endif // defined(ENABLE_MOJO_MEDIA) |
5006 } | 5006 } |
5007 | 5007 |
5008 return cdm_factory_.get(); | 5008 return cdm_factory_.get(); |
5009 } | 5009 } |
5010 | 5010 |
5011 } // namespace content | 5011 } // namespace content |
OLD | NEW |