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

Side by Side Diff: services/view_manager/default_access_policy.cc

Issue 774473003: Move view_manager service implementation to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698