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

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

Issue 1771743002: Move geolocation and permission mojoms into WebKit/public/platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 <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 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1884 // factory callback. 1884 // factory callback.
1885 GetServiceRegistry()->AddService<mojom::WakeLockService>( 1885 GetServiceRegistry()->AddService<mojom::WakeLockService>(
1886 base::Bind(&WakeLockServiceContext::CreateService, 1886 base::Bind(&WakeLockServiceContext::CreateService,
1887 base::Unretained(wake_lock_service_context), 1887 base::Unretained(wake_lock_service_context),
1888 GetProcess()->GetID(), GetRoutingID())); 1888 GetProcess()->GetID(), GetRoutingID()));
1889 } 1889 }
1890 1890
1891 if (!permission_service_context_) 1891 if (!permission_service_context_)
1892 permission_service_context_.reset(new PermissionServiceContext(this)); 1892 permission_service_context_.reset(new PermissionServiceContext(this));
1893 1893
1894 GetServiceRegistry()->AddService<mojom::PermissionService>( 1894 GetServiceRegistry()->AddService(
1895 base::Bind(&PermissionServiceContext::CreateService, 1895 base::Bind(&PermissionServiceContext::CreateService,
1896 base::Unretained(permission_service_context_.get()))); 1896 base::Unretained(permission_service_context_.get())));
1897 1897
1898 GetServiceRegistry()->AddService(base::Bind( 1898 GetServiceRegistry()->AddService(base::Bind(
1899 &PresentationServiceImpl::CreateMojoService, base::Unretained(this))); 1899 &PresentationServiceImpl::CreateMojoService, base::Unretained(this)));
1900 1900
1901 if (!frame_mojo_shell_) 1901 if (!frame_mojo_shell_)
1902 frame_mojo_shell_.reset(new FrameMojoShell(this)); 1902 frame_mojo_shell_.reset(new FrameMojoShell(this));
1903 1903
1904 GetServiceRegistry()->AddService<mojo::shell::mojom::Connector>(base::Bind( 1904 GetServiceRegistry()->AddService<mojo::shell::mojom::Connector>(base::Bind(
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
2731 FrameTreeNode* focused_frame_tree_node = frame_tree_->GetFocusedFrame(); 2731 FrameTreeNode* focused_frame_tree_node = frame_tree_->GetFocusedFrame();
2732 if (!focused_frame_tree_node) 2732 if (!focused_frame_tree_node)
2733 return; 2733 return;
2734 RenderFrameHostImpl* focused_frame = 2734 RenderFrameHostImpl* focused_frame =
2735 focused_frame_tree_node->current_frame_host(); 2735 focused_frame_tree_node->current_frame_host();
2736 DCHECK(focused_frame); 2736 DCHECK(focused_frame);
2737 dst->focused_tree_id = focused_frame->GetAXTreeID(); 2737 dst->focused_tree_id = focused_frame->GetAXTreeID();
2738 } 2738 }
2739 2739
2740 } // namespace content 2740 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698