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

Unified Diff: mojo/services/view_manager/access_policy_delegate.h

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 side-by-side diff with in-line comments
Download patch
Index: mojo/services/view_manager/access_policy_delegate.h
diff --git a/mojo/services/view_manager/access_policy_delegate.h b/mojo/services/view_manager/access_policy_delegate.h
deleted file mode 100644
index e32c79dee70416a35c12fe904f6585e2778d3de6..0000000000000000000000000000000000000000
--- a/mojo/services/view_manager/access_policy_delegate.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_SERVICES_VIEW_MANAGER_ACCESS_POLICY_DELEGATE_H_
-#define MOJO_SERVICES_VIEW_MANAGER_ACCESS_POLICY_DELEGATE_H_
-
-#include <vector>
-
-#include "base/containers/hash_tables.h"
-#include "mojo/services/view_manager/ids.h"
-
-namespace mojo {
-namespace service {
-
-class ServerView;
-
-// Delegate used by the AccessPolicy implementations to get state.
-class AccessPolicyDelegate {
- public:
- // Returns true if |id| is the root of the connection.
- virtual bool IsRootForAccessPolicy(const ViewId& id) const = 0;
-
- // Returns true if |view| has been exposed to the client.
- virtual bool IsViewKnownForAccessPolicy(const ServerView* view) const = 0;
-
- // Returns true if Embed(view) has been invoked on |view|.
- virtual bool IsViewRootOfAnotherConnectionForAccessPolicy(
- const ServerView* view) const = 0;
-
- protected:
- virtual ~AccessPolicyDelegate() {}
-};
-
-} // namespace service
-} // namespace mojo
-
-#endif // MOJO_SERVICES_VIEW_MANAGER_ACCESS_POLICY_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698