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

Unified Diff: mojo/shell/public/cpp/lib/connection_impl.h

Issue 1783303002: Revert of Capability Classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@45class
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/shell/public/cpp/connection.h ('k') | mojo/shell/public/cpp/lib/connection_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/public/cpp/lib/connection_impl.h
diff --git a/mojo/shell/public/cpp/lib/connection_impl.h b/mojo/shell/public/cpp/lib/connection_impl.h
index 2c58d86c0cc26324131af561400d8f6d226f385b..3247a5a73ea094989b54644deaa8213f3ca9d97c 100644
--- a/mojo/shell/public/cpp/lib/connection_impl.h
+++ b/mojo/shell/public/cpp/lib/connection_impl.h
@@ -11,7 +11,6 @@
#include <string>
#include "mojo/public/cpp/bindings/binding.h"
-#include "mojo/shell/public/cpp/capabilities.h"
#include "mojo/shell/public/cpp/connection.h"
#include "mojo/shell/public/cpp/identity.h"
#include "mojo/shell/public/interfaces/connector.mojom.h"
@@ -34,7 +33,7 @@
uint32_t remote_id,
shell::mojom::InterfaceProviderPtr remote_interfaces,
shell::mojom::InterfaceProviderRequest local_interfaces,
- const CapabilityRequest& capability_request,
+ const std::set<std::string>& allowed_interfaces,
State initial_state);
~ConnectionImpl() override;
@@ -42,7 +41,6 @@
private:
// Connection:
- bool HasCapabilityClass(const std::string& class_name) const override;
const std::string& GetConnectionName() override;
const Identity& GetRemoteIdentity() const override;
void SetConnectionLostClosure(const Closure& handler) override;
@@ -70,7 +68,7 @@
InterfaceRegistry local_registry_;
shell::mojom::InterfaceProviderPtr remote_interfaces_;
- const CapabilityRequest capability_request_;
+ const std::set<std::string> allowed_interfaces_;
const bool allow_all_interfaces_;
base::WeakPtrFactory<ConnectionImpl> weak_factory_;
« no previous file with comments | « mojo/shell/public/cpp/connection.h ('k') | mojo/shell/public/cpp/lib/connection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698