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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2590883003: Fix leak in VRServiceImpl (Closed)
Patch Set: fix compile 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 | « no previous file | device/vr/vr_display_impl.cc » ('j') | 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/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 2239 matching lines...) Expand 10 before | Expand all | Expand 10 after
2250 // This is to support usage of WebSockets in cases in which there is an 2250 // This is to support usage of WebSockets in cases in which there is an
2251 // associated RenderFrame. This is important for showing the correct security 2251 // associated RenderFrame. This is important for showing the correct security
2252 // state of the page and also honoring user override of bad certificates. 2252 // state of the page and also honoring user override of bad certificates.
2253 GetInterfaceRegistry()->AddInterface( 2253 GetInterfaceRegistry()->AddInterface(
2254 base::Bind(&WebSocketManager::CreateWebSocket, 2254 base::Bind(&WebSocketManager::CreateWebSocket,
2255 process_->GetID(), 2255 process_->GetID(),
2256 routing_id_)); 2256 routing_id_));
2257 2257
2258 #if defined(ENABLE_WEBVR) 2258 #if defined(ENABLE_WEBVR)
2259 GetInterfaceRegistry()->AddInterface<device::mojom::VRService>( 2259 GetInterfaceRegistry()->AddInterface<device::mojom::VRService>(
2260 base::Bind(&device::VRServiceImpl::BindRequest)); 2260 base::Bind(&device::VRServiceImpl::Create));
2261 #endif 2261 #endif
2262 if (base::FeatureList::IsEnabled(features::kGenericSensor)) { 2262 if (base::FeatureList::IsEnabled(features::kGenericSensor)) {
2263 GetInterfaceRegistry()->AddInterface( 2263 GetInterfaceRegistry()->AddInterface(
2264 base::Bind(&device::SensorProviderImpl::Create, 2264 base::Bind(&device::SensorProviderImpl::Create,
2265 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE)), 2265 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE)),
2266 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); 2266 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
2267 } 2267 }
2268 2268
2269 #if defined(ENABLE_WEBRTC) 2269 #if defined(ENABLE_WEBRTC)
2270 // BrowserMainLoop::GetInstance() may be null on unit tests. 2270 // BrowserMainLoop::GetInstance() may be null on unit tests.
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
3304 // There is no pending NavigationEntry in these cases, so pass 0 as the 3304 // There is no pending NavigationEntry in these cases, so pass 0 as the
3305 // pending_nav_entry_id. If the previous handle was a prematurely aborted 3305 // pending_nav_entry_id. If the previous handle was a prematurely aborted
3306 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. 3306 // navigation loaded via LoadDataWithBaseURL, propagate the entry id.
3307 return NavigationHandleImpl::Create( 3307 return NavigationHandleImpl::Create(
3308 params.url, frame_tree_node_, is_renderer_initiated, 3308 params.url, frame_tree_node_, is_renderer_initiated,
3309 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(), 3309 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(),
3310 entry_id_for_data_nav, false); // started_from_context_menu 3310 entry_id_for_data_nav, false); // started_from_context_menu
3311 } 3311 }
3312 3312
3313 } // namespace content 3313 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | device/vr/vr_display_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698