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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 // passed back to the browser in the DidCommitProvisionalLoad and the | 450 // passed back to the browser in the DidCommitProvisionalLoad and the |
451 // DocumentLoadComplete IPCs. | 451 // DocumentLoadComplete IPCs. |
452 base::TimeDelta ui_timestamp = common_params.ui_timestamp - base::TimeTicks(); | 452 base::TimeDelta ui_timestamp = common_params.ui_timestamp - base::TimeTicks(); |
453 request.setUiStartTime(ui_timestamp.InSecondsF()); | 453 request.setUiStartTime(ui_timestamp.InSecondsF()); |
454 request.setInputPerfMetricReportPolicy( | 454 request.setInputPerfMetricReportPolicy( |
455 static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( | 455 static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( |
456 common_params.report_type)); | 456 common_params.report_type)); |
457 return request; | 457 return request; |
458 } | 458 } |
459 | 459 |
460 // Sanitizes the navigation_start timestamp for browser-initiated navigations, | 460 void UpdateFrameNavigationTiming(WebFrame* frame, |
461 // where the browser possibly has a better notion of start time than the | 461 base::TimeTicks browser_navigation_start, |
462 // renderer. In the case of cross-process navigations, this carries over the | 462 base::TimeTicks renderer_navigation_start) { |
463 // time of finishing the onbeforeunload handler of the previous page. | 463 // The browser provides the navigation_start time to bootstrap the |
464 // TimeTicks is sometimes not monotonic across processes, and because | 464 // Navigation Timing information for the browser-initiated navigations. In |
465 // |browser_navigation_start| is likely before this process existed, | 465 // case of cross-process navigations, this carries over the time of |
466 // InterProcessTimeTicksConverter won't help. The timestamp is sanitized by | 466 // finishing the onbeforeunload handler of the previous page. |
467 // clamping it to renderer_navigation_start, initialized earlier in the call | |
468 // stack. | |
469 base::TimeTicks SanitizeNavigationTiming( | |
470 blink::WebFrameLoadType load_type, | |
471 const base::TimeTicks& browser_navigation_start, | |
472 const base::TimeTicks& renderer_navigation_start) { | |
473 if (load_type != blink::WebFrameLoadType::Standard) | |
474 return base::TimeTicks(); | |
475 DCHECK(!browser_navigation_start.is_null()); | 467 DCHECK(!browser_navigation_start.is_null()); |
476 base::TimeTicks navigation_start = | 468 if (frame->provisionalDataSource()) { |
477 std::min(browser_navigation_start, renderer_navigation_start); | 469 // |browser_navigation_start| is likely before this process existed, so we |
478 // TODO(csharrison) Investigate how big a problem the cross process | 470 // can't use InterProcessTimeTicksConverter. We need at least to ensure |
479 // monotonicity really is and on what platforms. Log UMA for: | 471 // that the browser-side navigation start we set is not later than the one |
480 // |renderer_navigation_start - browser_navigation_start| | 472 // on the renderer side. |
481 return navigation_start; | 473 base::TimeTicks navigation_start = std::min( |
| 474 browser_navigation_start, renderer_navigation_start); |
| 475 double navigation_start_seconds = |
| 476 (navigation_start - base::TimeTicks()).InSecondsF(); |
| 477 frame->provisionalDataSource()->setNavigationStartTime( |
| 478 navigation_start_seconds); |
| 479 // TODO(clamy): We need to provide additional timing values for the |
| 480 // Navigation Timing API to work with browser-side navigations. |
| 481 } |
482 } | 482 } |
483 | 483 |
484 // PlzNavigate | 484 // PlzNavigate |
485 CommonNavigationParams MakeCommonNavigationParams( | 485 CommonNavigationParams MakeCommonNavigationParams( |
486 blink::WebURLRequest* request, | 486 blink::WebURLRequest* request, |
487 bool should_replace_current_entry) { | 487 bool should_replace_current_entry) { |
488 const RequestExtraData kEmptyData; | 488 const RequestExtraData kEmptyData; |
489 const RequestExtraData* extra_data = | 489 const RequestExtraData* extra_data = |
490 static_cast<RequestExtraData*>(request->extraData()); | 490 static_cast<RequestExtraData*>(request->extraData()); |
491 if (!extra_data) | 491 if (!extra_data) |
(...skipping 2091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2583 InternalDocumentStateData::FromDocumentState(document_state); | 2583 InternalDocumentStateData::FromDocumentState(document_state); |
2584 InternalDocumentStateData* old_internal_data = | 2584 InternalDocumentStateData* old_internal_data = |
2585 InternalDocumentStateData::FromDocumentState(old_document_state); | 2585 InternalDocumentStateData::FromDocumentState(old_document_state); |
2586 internal_data->set_is_overriding_user_agent( | 2586 internal_data->set_is_overriding_user_agent( |
2587 old_internal_data->is_overriding_user_agent()); | 2587 old_internal_data->is_overriding_user_agent()); |
2588 } | 2588 } |
2589 } | 2589 } |
2590 | 2590 |
2591 // The rest of RenderView assumes that a WebDataSource will always have a | 2591 // The rest of RenderView assumes that a WebDataSource will always have a |
2592 // non-null NavigationState. | 2592 // non-null NavigationState. |
2593 UpdateNavigationState(document_state); | 2593 if (content_initiated) { |
| 2594 document_state->set_navigation_state( |
| 2595 NavigationStateImpl::CreateContentInitiated()); |
| 2596 } else { |
| 2597 document_state->set_navigation_state(CreateNavigationStateFromPending()); |
| 2598 pending_navigation_params_.reset(); |
| 2599 } |
2594 | 2600 |
2595 // DocumentState::referred_by_prefetcher_ is true if we are | 2601 // DocumentState::referred_by_prefetcher_ is true if we are |
2596 // navigating from a page that used prefetching using a link on that | 2602 // navigating from a page that used prefetching using a link on that |
2597 // page. We are early enough in the request process here that we | 2603 // page. We are early enough in the request process here that we |
2598 // can still see the DocumentState of the previous page and set | 2604 // can still see the DocumentState of the previous page and set |
2599 // this value appropriately. | 2605 // this value appropriately. |
2600 // TODO(gavinp): catch the important case of navigation in a new | 2606 // TODO(gavinp): catch the important case of navigation in a new |
2601 // renderer process. | 2607 // renderer process. |
2602 if (webview) { | 2608 if (webview) { |
2603 if (WebFrame* old_frame = webview->mainFrame()) { | 2609 if (WebFrame* old_frame = webview->mainFrame()) { |
(...skipping 29 matching lines...) Expand all Loading... |
2633 document_state->set_load_type(DocumentState::LINK_LOAD_CACHE_STALE_OK); | 2639 document_state->set_load_type(DocumentState::LINK_LOAD_CACHE_STALE_OK); |
2634 break; | 2640 break; |
2635 case WebURLRequest::ReturnCacheDataDontLoad: // Don't re-post. | 2641 case WebURLRequest::ReturnCacheDataDontLoad: // Don't re-post. |
2636 document_state->set_load_type(DocumentState::LINK_LOAD_CACHE_ONLY); | 2642 document_state->set_load_type(DocumentState::LINK_LOAD_CACHE_ONLY); |
2637 break; | 2643 break; |
2638 default: | 2644 default: |
2639 NOTREACHED(); | 2645 NOTREACHED(); |
2640 } | 2646 } |
2641 } | 2647 } |
2642 | 2648 |
2643 NavigationStateImpl* navigation_state = static_cast<NavigationStateImpl*>( | |
2644 document_state->navigation_state()); | |
2645 | |
2646 // Set the navigation start time in blink. | |
2647 base::TimeTicks navigation_start = | |
2648 navigation_state->common_params().navigation_start; | |
2649 datasource->setNavigationStartTime( | |
2650 (navigation_start - base::TimeTicks()).InSecondsF()); | |
2651 // TODO(clamy) We need to provide additional timing values for the Navigation | |
2652 // Timing API to work with browser-side navigations. | |
2653 | |
2654 // Create the serviceworker's per-document network observing object if it | 2649 // Create the serviceworker's per-document network observing object if it |
2655 // does not exist (When navigation happens within a page, the provider already | 2650 // does not exist (When navigation happens within a page, the provider already |
2656 // exists). | 2651 // exists). |
2657 if (ServiceWorkerNetworkProvider::FromDocumentState( | 2652 if (ServiceWorkerNetworkProvider::FromDocumentState( |
2658 DocumentState::FromDataSource(datasource))) | 2653 DocumentState::FromDataSource(datasource))) |
2659 return; | 2654 return; |
2660 | 2655 |
| 2656 NavigationStateImpl* navigation_state = static_cast<NavigationStateImpl*>( |
| 2657 DocumentState::FromDataSource(datasource)->navigation_state()); |
| 2658 |
2661 ServiceWorkerNetworkProvider::AttachToDocumentState( | 2659 ServiceWorkerNetworkProvider::AttachToDocumentState( |
2662 DocumentState::FromDataSource(datasource), | 2660 DocumentState::FromDataSource(datasource), |
2663 ServiceWorkerNetworkProvider::CreateForNavigation( | 2661 ServiceWorkerNetworkProvider::CreateForNavigation( |
2664 routing_id_, navigation_state->request_params(), | 2662 routing_id_, navigation_state->request_params(), |
2665 frame->effectiveSandboxFlags(), content_initiated)); | 2663 frame->effectiveSandboxFlags(), content_initiated)); |
2666 } | 2664 } |
2667 | 2665 |
2668 void RenderFrameImpl::didStartProvisionalLoad(blink::WebLocalFrame* frame, | 2666 void RenderFrameImpl::didStartProvisionalLoad(blink::WebLocalFrame* frame, |
2669 double triggering_event_time) { | 2667 double triggering_event_time) { |
2670 DCHECK(!frame_ || frame_ == frame); | 2668 DCHECK(!frame_ || frame_ == frame); |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3126 blink::WebHistoryCommitType commit_type) { | 3124 blink::WebHistoryCommitType commit_type) { |
3127 TRACE_EVENT1("navigation", "RenderFrameImpl::didNavigateWithinPage", | 3125 TRACE_EVENT1("navigation", "RenderFrameImpl::didNavigateWithinPage", |
3128 "id", routing_id_); | 3126 "id", routing_id_); |
3129 DCHECK(!frame_ || frame_ == frame); | 3127 DCHECK(!frame_ || frame_ == frame); |
3130 // If this was a reference fragment navigation that we initiated, then we | 3128 // If this was a reference fragment navigation that we initiated, then we |
3131 // could end up having a non-null pending navigation params. We just need to | 3129 // could end up having a non-null pending navigation params. We just need to |
3132 // update the ExtraData on the datasource so that others who read the | 3130 // update the ExtraData on the datasource so that others who read the |
3133 // ExtraData will get the new NavigationState. Similarly, if we did not | 3131 // ExtraData will get the new NavigationState. Similarly, if we did not |
3134 // initiate this navigation, then we need to take care to reset any pre- | 3132 // initiate this navigation, then we need to take care to reset any pre- |
3135 // existing navigation state to a content-initiated navigation state. | 3133 // existing navigation state to a content-initiated navigation state. |
3136 // UpdateNavigationState conveniently takes care of this for us. | 3134 // didCreateDataSource conveniently takes care of this for us. |
| 3135 didCreateDataSource(frame, frame->dataSource()); |
| 3136 |
3137 DocumentState* document_state = | 3137 DocumentState* document_state = |
3138 DocumentState::FromDataSource(frame->dataSource()); | 3138 DocumentState::FromDataSource(frame->dataSource()); |
3139 UpdateNavigationState(document_state); | |
3140 static_cast<NavigationStateImpl*>(document_state->navigation_state()) | 3139 static_cast<NavigationStateImpl*>(document_state->navigation_state()) |
3141 ->set_was_within_same_page(true); | 3140 ->set_was_within_same_page(true); |
3142 | 3141 |
3143 didCommitProvisionalLoad(frame, item, commit_type); | 3142 didCommitProvisionalLoad(frame, item, commit_type); |
3144 } | 3143 } |
3145 | 3144 |
3146 void RenderFrameImpl::didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame) { | 3145 void RenderFrameImpl::didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame) { |
3147 DCHECK(!frame_ || frame_ == frame); | 3146 DCHECK(!frame_ || frame_ == frame); |
3148 // TODO(nasko): Move implementation here. Needed methods: | 3147 // TODO(nasko): Move implementation here. Needed methods: |
3149 // * StartNavStateSyncTimerIfNecessary | 3148 // * StartNavStateSyncTimerIfNecessary |
(...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4616 } | 4615 } |
4617 | 4616 |
4618 void RenderFrameImpl::NavigateInternal( | 4617 void RenderFrameImpl::NavigateInternal( |
4619 const CommonNavigationParams& common_params, | 4618 const CommonNavigationParams& common_params, |
4620 const StartNavigationParams& start_params, | 4619 const StartNavigationParams& start_params, |
4621 const RequestNavigationParams& request_params, | 4620 const RequestNavigationParams& request_params, |
4622 scoped_ptr<StreamOverrideParameters> stream_params) { | 4621 scoped_ptr<StreamOverrideParameters> stream_params) { |
4623 bool browser_side_navigation = | 4622 bool browser_side_navigation = |
4624 base::CommandLine::ForCurrentProcess()->HasSwitch( | 4623 base::CommandLine::ForCurrentProcess()->HasSwitch( |
4625 switches::kEnableBrowserSideNavigation); | 4624 switches::kEnableBrowserSideNavigation); |
4626 | |
4627 // Lower bound for browser initiated navigation start time. | |
4628 base::TimeTicks renderer_navigation_start = base::TimeTicks::Now(); | |
4629 bool is_reload = IsReload(common_params.navigation_type); | 4625 bool is_reload = IsReload(common_params.navigation_type); |
4630 bool is_history_navigation = request_params.page_state.IsValid(); | 4626 bool is_history_navigation = request_params.page_state.IsValid(); |
4631 WebURLRequest::CachePolicy cache_policy = | 4627 WebURLRequest::CachePolicy cache_policy = |
4632 WebURLRequest::UseProtocolCachePolicy; | 4628 WebURLRequest::UseProtocolCachePolicy; |
4633 RenderFrameImpl::PrepareRenderViewForNavigation( | 4629 RenderFrameImpl::PrepareRenderViewForNavigation( |
4634 common_params.url, request_params, &is_reload, &cache_policy); | 4630 common_params.url, request_params, &is_reload, &cache_policy); |
4635 | 4631 |
4636 GetContentClient()->SetActiveURL(common_params.url); | 4632 GetContentClient()->SetActiveURL(common_params.url); |
4637 | 4633 |
4638 // If this frame isn't in the same process as the main frame, it may naively | 4634 // If this frame isn't in the same process as the main frame, it may naively |
4639 // assume that this is the first navigation in the iframe, but this may not | 4635 // assume that this is the first navigation in the iframe, but this may not |
4640 // actually be the case. Inform the frame's state machine if this frame has | 4636 // actually be the case. Inform the frame's state machine if this frame has |
4641 // already committed other loads. | 4637 // already committed other loads. |
4642 if (request_params.has_committed_real_load && frame_->parent()) | 4638 if (request_params.has_committed_real_load && frame_->parent()) |
4643 frame_->setCommittedFirstRealLoad(); | 4639 frame_->setCommittedFirstRealLoad(); |
4644 | 4640 |
4645 if (is_reload && !render_view_->history_controller()->GetCurrentEntry()) { | 4641 if (is_reload && !render_view_->history_controller()->GetCurrentEntry()) { |
4646 // We cannot reload if we do not have any history state. This happens, for | 4642 // We cannot reload if we do not have any history state. This happens, for |
4647 // example, when recovering from a crash. | 4643 // example, when recovering from a crash. |
4648 is_reload = false; | 4644 is_reload = false; |
4649 cache_policy = WebURLRequest::ReloadIgnoringCacheData; | 4645 cache_policy = WebURLRequest::ReloadIgnoringCacheData; |
4650 } | 4646 } |
4651 | 4647 |
4652 pending_navigation_params_.reset( | 4648 pending_navigation_params_.reset( |
4653 new NavigationParams(common_params, start_params, request_params)); | 4649 new NavigationParams(common_params, start_params, request_params)); |
4654 | 4650 |
4655 // Unless the load is a WebFrameLoadType::Standard, this should remain | |
4656 // uninitialized. It will be updated when the load type is determined to be | |
4657 // Standard, or after the previous document's unload handler has been | |
4658 // triggered. This occurs in UpdateNavigationState. | |
4659 // TODO(csharrison) See if we can always use the browser timestamp. | |
4660 pending_navigation_params_->common_params.navigation_start = | |
4661 base::TimeTicks(); | |
4662 | |
4663 // Create parameters for a standard navigation. | 4651 // Create parameters for a standard navigation. |
4664 blink::WebFrameLoadType load_type = blink::WebFrameLoadType::Standard; | 4652 blink::WebFrameLoadType load_type = blink::WebFrameLoadType::Standard; |
4665 bool should_load_request = false; | 4653 bool should_load_request = false; |
4666 WebHistoryItem item_for_history_navigation; | 4654 WebHistoryItem item_for_history_navigation; |
4667 WebURLRequest request = CreateURLRequestForNavigation( | 4655 WebURLRequest request = CreateURLRequestForNavigation( |
4668 common_params, stream_params.Pass(), frame_->isViewSourceModeEnabled()); | 4656 common_params, stream_params.Pass(), frame_->isViewSourceModeEnabled()); |
4669 #if defined(OS_ANDROID) | 4657 #if defined(OS_ANDROID) |
4670 request.setHasUserGesture(start_params.has_user_gesture); | 4658 request.setHasUserGesture(start_params.has_user_gesture); |
4671 #endif | 4659 #endif |
4672 | 4660 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4783 request.setHTTPBody(http_body); | 4771 request.setHTTPBody(http_body); |
4784 } | 4772 } |
4785 | 4773 |
4786 // A session history navigation should have been accompanied by state. | 4774 // A session history navigation should have been accompanied by state. |
4787 CHECK_EQ(request_params.page_id, -1); | 4775 CHECK_EQ(request_params.page_id, -1); |
4788 | 4776 |
4789 should_load_request = true; | 4777 should_load_request = true; |
4790 } | 4778 } |
4791 | 4779 |
4792 if (should_load_request) { | 4780 if (should_load_request) { |
4793 // Sanitize navigation start now that we know the load_type. | 4781 // Record this before starting the load. We need a lower bound of this |
4794 pending_navigation_params_->common_params.navigation_start = | 4782 // time to sanitize the navigationStart override set below. |
4795 SanitizeNavigationTiming(load_type, common_params.navigation_start, | 4783 base::TimeTicks renderer_navigation_start = base::TimeTicks::Now(); |
4796 renderer_navigation_start); | 4784 |
4797 // Perform a navigation to a data url if needed. | 4785 // Perform a navigation to a data url if needed. |
4798 if (!common_params.base_url_for_data_url.is_empty() || | 4786 if (!common_params.base_url_for_data_url.is_empty() || |
4799 (browser_side_navigation && | 4787 (browser_side_navigation && |
4800 common_params.url.SchemeIs(url::kDataScheme))) { | 4788 common_params.url.SchemeIs(url::kDataScheme))) { |
4801 LoadDataURL(common_params, frame_); | 4789 LoadDataURL(common_params, frame_); |
4802 } else { | 4790 } else { |
4803 // Load the request. | 4791 // Load the request. |
4804 frame_->toWebLocalFrame()->load(request, load_type, | 4792 frame_->toWebLocalFrame()->load(request, load_type, |
4805 item_for_history_navigation); | 4793 item_for_history_navigation); |
4806 } | 4794 } |
| 4795 |
| 4796 if (load_type == blink::WebFrameLoadType::Standard) { |
| 4797 UpdateFrameNavigationTiming(frame_, |
| 4798 common_params.navigation_start, |
| 4799 renderer_navigation_start); |
| 4800 } |
4807 } | 4801 } |
4808 | 4802 |
4809 // In case LoadRequest failed before didCreateDataSource was called. | 4803 // In case LoadRequest failed before didCreateDataSource was called. |
4810 pending_navigation_params_.reset(); | 4804 pending_navigation_params_.reset(); |
4811 } | 4805 } |
4812 | 4806 |
4813 void RenderFrameImpl::UpdateEncoding(WebFrame* frame, | 4807 void RenderFrameImpl::UpdateEncoding(WebFrame* frame, |
4814 const std::string& encoding_name) { | 4808 const std::string& encoding_name) { |
4815 // Only update main frame's encoding_name. | 4809 // Only update main frame's encoding_name. |
4816 if (!frame->parent()) | 4810 if (!frame->parent()) |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5157 NavigationState* RenderFrameImpl::CreateNavigationStateFromPending() { | 5151 NavigationState* RenderFrameImpl::CreateNavigationStateFromPending() { |
5158 if (IsBrowserInitiated(pending_navigation_params_.get())) { | 5152 if (IsBrowserInitiated(pending_navigation_params_.get())) { |
5159 return NavigationStateImpl::CreateBrowserInitiated( | 5153 return NavigationStateImpl::CreateBrowserInitiated( |
5160 pending_navigation_params_->common_params, | 5154 pending_navigation_params_->common_params, |
5161 pending_navigation_params_->start_params, | 5155 pending_navigation_params_->start_params, |
5162 pending_navigation_params_->request_params); | 5156 pending_navigation_params_->request_params); |
5163 } | 5157 } |
5164 return NavigationStateImpl::CreateContentInitiated(); | 5158 return NavigationStateImpl::CreateContentInitiated(); |
5165 } | 5159 } |
5166 | 5160 |
5167 void RenderFrameImpl::UpdateNavigationState(DocumentState* document_state) { | |
5168 if (pending_navigation_params_) { | |
5169 // If this is a browser-initiated load that doesn't override | |
5170 // navigation_start, set it here. | |
5171 if (pending_navigation_params_->common_params.navigation_start.is_null()) { | |
5172 pending_navigation_params_->common_params.navigation_start = | |
5173 base::TimeTicks::Now(); | |
5174 } | |
5175 document_state->set_navigation_state(CreateNavigationStateFromPending()); | |
5176 pending_navigation_params_.reset(); | |
5177 } else { | |
5178 document_state->set_navigation_state( | |
5179 NavigationStateImpl::CreateContentInitiated()); | |
5180 } | |
5181 } | |
5182 | |
5183 #if defined(OS_ANDROID) | 5161 #if defined(OS_ANDROID) |
5184 WebMediaPlayer* RenderFrameImpl::CreateAndroidWebMediaPlayer( | 5162 WebMediaPlayer* RenderFrameImpl::CreateAndroidWebMediaPlayer( |
5185 WebMediaPlayerClient* client, | 5163 WebMediaPlayerClient* client, |
5186 WebMediaPlayerEncryptedMediaClient* encrypted_client, | 5164 WebMediaPlayerEncryptedMediaClient* encrypted_client, |
5187 const media::WebMediaPlayerParams& params) { | 5165 const media::WebMediaPlayerParams& params) { |
5188 scoped_refptr<StreamTextureFactory> stream_texture_factory; | 5166 scoped_refptr<StreamTextureFactory> stream_texture_factory; |
5189 if (SynchronousCompositorFactory* factory = | 5167 if (SynchronousCompositorFactory* factory = |
5190 SynchronousCompositorFactory::GetInstance()) { | 5168 SynchronousCompositorFactory::GetInstance()) { |
5191 stream_texture_factory = factory->CreateStreamTextureFactory(routing_id_); | 5169 stream_texture_factory = factory->CreateStreamTextureFactory(routing_id_); |
5192 } else { | 5170 } else { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5310 mojo::ServiceProviderPtr service_provider; | 5288 mojo::ServiceProviderPtr service_provider; |
5311 mojo::URLRequestPtr request(mojo::URLRequest::New()); | 5289 mojo::URLRequestPtr request(mojo::URLRequest::New()); |
5312 request->url = mojo::String::From(url); | 5290 request->url = mojo::String::From(url); |
5313 mojo_shell_->ConnectToApplication(request.Pass(), GetProxy(&service_provider), | 5291 mojo_shell_->ConnectToApplication(request.Pass(), GetProxy(&service_provider), |
5314 nullptr, nullptr, | 5292 nullptr, nullptr, |
5315 base::Bind(&OnGotContentHandlerID)); | 5293 base::Bind(&OnGotContentHandlerID)); |
5316 return service_provider.Pass(); | 5294 return service_provider.Pass(); |
5317 } | 5295 } |
5318 | 5296 |
5319 } // namespace content | 5297 } // namespace content |
OLD | NEW |