| 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 "mojo/services/view_manager/default_access_policy.h" | 5 #include "services/view_manager/default_access_policy.h" |
| 6 | 6 |
| 7 #include "mojo/services/view_manager/access_policy_delegate.h" | 7 #include "services/view_manager/access_policy_delegate.h" |
| 8 #include "mojo/services/view_manager/server_view.h" | 8 #include "services/view_manager/server_view.h" |
| 9 | 9 |
| 10 namespace mojo { | 10 namespace mojo { |
| 11 namespace service { | 11 namespace service { |
| 12 | 12 |
| 13 DefaultAccessPolicy::DefaultAccessPolicy(ConnectionSpecificId connection_id, | 13 DefaultAccessPolicy::DefaultAccessPolicy(ConnectionSpecificId connection_id, |
| 14 AccessPolicyDelegate* delegate) | 14 AccessPolicyDelegate* delegate) |
| 15 : connection_id_(connection_id), | 15 : connection_id_(connection_id), |
| 16 delegate_(delegate) { | 16 delegate_(delegate) { |
| 17 } | 17 } |
| 18 | 18 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 return true; | 105 return true; |
| 106 } | 106 } |
| 107 | 107 |
| 108 bool DefaultAccessPolicy::WasCreatedByThisConnection( | 108 bool DefaultAccessPolicy::WasCreatedByThisConnection( |
| 109 const ServerView* view) const { | 109 const ServerView* view) const { |
| 110 return view->id().connection_id == connection_id_; | 110 return view->id().connection_id == connection_id_; |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace service | 113 } // namespace service |
| 114 } // namespace mojo | 114 } // namespace mojo |
| OLD | NEW |