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

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

Issue 1373883003: Move geolocation and permission mojoms into components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 1585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1596 } 1596 }
1597 #endif 1597 #endif
1598 1598
1599 void RenderFrameHostImpl::RegisterMojoServices() { 1599 void RenderFrameHostImpl::RegisterMojoServices() {
1600 GeolocationServiceContext* geolocation_service_context = 1600 GeolocationServiceContext* geolocation_service_context =
1601 delegate_ ? delegate_->GetGeolocationServiceContext() : NULL; 1601 delegate_ ? delegate_->GetGeolocationServiceContext() : NULL;
1602 if (geolocation_service_context) { 1602 if (geolocation_service_context) {
1603 // TODO(creis): Bind process ID here so that GeolocationServiceImpl 1603 // TODO(creis): Bind process ID here so that GeolocationServiceImpl
1604 // can perform permissions checks once site isolation is complete. 1604 // can perform permissions checks once site isolation is complete.
1605 // crbug.com/426384 1605 // crbug.com/426384
1606 GetServiceRegistry()->AddService<GeolocationService>( 1606 GetServiceRegistry()->AddService(
1607 base::Bind(&GeolocationServiceContext::CreateService, 1607 base::Bind(&GeolocationServiceContext::CreateService,
1608 base::Unretained(geolocation_service_context), 1608 base::Unretained(geolocation_service_context),
1609 base::Bind(&RenderFrameHostImpl::DidUseGeolocationPermission, 1609 base::Bind(&RenderFrameHostImpl::DidUseGeolocationPermission,
1610 base::Unretained(this)))); 1610 base::Unretained(this))));
1611 } 1611 }
1612 1612
1613 if (!permission_service_context_) 1613 if (!permission_service_context_)
1614 permission_service_context_.reset(new PermissionServiceContext(this)); 1614 permission_service_context_.reset(new PermissionServiceContext(this));
1615 1615
1616 GetServiceRegistry()->AddService<PermissionService>( 1616 GetServiceRegistry()->AddService(
1617 base::Bind(&PermissionServiceContext::CreateService, 1617 base::Bind(&PermissionServiceContext::CreateService,
1618 base::Unretained(permission_service_context_.get()))); 1618 base::Unretained(permission_service_context_.get())));
1619 1619
1620 GetServiceRegistry()->AddService<presentation::PresentationService>( 1620 GetServiceRegistry()->AddService<presentation::PresentationService>(
1621 base::Bind(&PresentationServiceImpl::CreateMojoService, 1621 base::Bind(&PresentationServiceImpl::CreateMojoService,
1622 base::Unretained(this))); 1622 base::Unretained(this)));
1623 1623
1624 if (!frame_mojo_shell_) 1624 if (!frame_mojo_shell_)
1625 frame_mojo_shell_.reset(new FrameMojoShell(this)); 1625 frame_mojo_shell_.reset(new FrameMojoShell(this));
1626 1626
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
2267 BrowserPluginInstanceIDToAXTreeID(value))); 2267 BrowserPluginInstanceIDToAXTreeID(value)));
2268 break; 2268 break;
2269 case AX_CONTENT_INT_ATTRIBUTE_LAST: 2269 case AX_CONTENT_INT_ATTRIBUTE_LAST:
2270 NOTREACHED(); 2270 NOTREACHED();
2271 break; 2271 break;
2272 } 2272 }
2273 } 2273 }
2274 } 2274 }
2275 2275
2276 } // namespace content 2276 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698