OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/mus/default_access_policy.h" | 5 #include "components/mus/vm/default_access_policy.h" |
6 | 6 |
7 #include "components/mus/access_policy_delegate.h" | 7 #include "components/mus/vm/access_policy_delegate.h" |
8 #include "components/mus/server_view.h" | 8 #include "components/mus/vm/server_view.h" |
9 | 9 |
10 namespace mus { | 10 namespace mus { |
11 | 11 |
12 DefaultAccessPolicy::DefaultAccessPolicy(ConnectionSpecificId connection_id, | 12 DefaultAccessPolicy::DefaultAccessPolicy(ConnectionSpecificId connection_id, |
13 AccessPolicyDelegate* delegate) | 13 AccessPolicyDelegate* delegate) |
14 : connection_id_(connection_id), delegate_(delegate) {} | 14 : connection_id_(connection_id), delegate_(delegate) {} |
15 | 15 |
16 DefaultAccessPolicy::~DefaultAccessPolicy() {} | 16 DefaultAccessPolicy::~DefaultAccessPolicy() {} |
17 | 17 |
18 bool DefaultAccessPolicy::CanRemoveViewFromParent( | 18 bool DefaultAccessPolicy::CanRemoveViewFromParent( |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 const ServerView* view) const { | 137 const ServerView* view) const { |
138 return view->id().connection_id == connection_id_; | 138 return view->id().connection_id == connection_id_; |
139 } | 139 } |
140 | 140 |
141 bool DefaultAccessPolicy::IsDescendantOfEmbedRoot( | 141 bool DefaultAccessPolicy::IsDescendantOfEmbedRoot( |
142 const ServerView* view) const { | 142 const ServerView* view) const { |
143 return delegate_->IsDescendantOfEmbedRoot(view); | 143 return delegate_->IsDescendantOfEmbedRoot(view); |
144 } | 144 } |
145 | 145 |
146 } // namespace mus | 146 } // namespace mus |
OLD | NEW |