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

Side by Side Diff: content/browser/mojo/renderer_capability_filter.cc

Issue 1679573002: Move shell interfaces into the shell.mojom namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 years, 10 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
« no previous file with comments | « content/browser/mojo/mojo_shell_context.cc ('k') | content/child/process_control_impl.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <utility> 5 #include <utility>
6 6
7 #include "components/mus/public/interfaces/gpu.mojom.h" 7 #include "components/mus/public/interfaces/gpu.mojom.h"
8 #include "content/browser/mojo/mojo_shell_client_host.h" 8 #include "content/browser/mojo/mojo_shell_client_host.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 mojo::CapabilityFilterPtr CreateCapabilityFilterForRenderer() { 12 mojo::shell::mojom::CapabilityFilterPtr CreateCapabilityFilterForRenderer() {
13 // See https://goo.gl/gkBtCR for a description of what this is and what to 13 // See https://goo.gl/gkBtCR for a description of what this is and what to
14 // think about when changing it. 14 // think about when changing it.
15 mojo::CapabilityFilterPtr filter(mojo::CapabilityFilter::New()); 15 mojo::shell::mojom::CapabilityFilterPtr filter(
16 mojo::shell::mojom::CapabilityFilter::New());
16 mojo::Array<mojo::String> window_manager_interfaces; 17 mojo::Array<mojo::String> window_manager_interfaces;
17 window_manager_interfaces.push_back(mus::mojom::Gpu::Name_); 18 window_manager_interfaces.push_back(mus::mojom::Gpu::Name_);
18 filter->filter.insert("mojo:mus", std::move(window_manager_interfaces)); 19 filter->filter.insert("mojo:mus", std::move(window_manager_interfaces));
19 return filter; 20 return filter;
20 } 21 }
21 22
22 } // namespace content 23 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mojo/mojo_shell_context.cc ('k') | content/child/process_control_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698