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

Unified Diff: mojo/shell/content_handler_connection.cc

Issue 1351443004: Revert of Make CapabilityFilter be part of Identity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/content_handler_connection.h ('k') | mojo/shell/identity.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/content_handler_connection.cc
diff --git a/mojo/shell/content_handler_connection.cc b/mojo/shell/content_handler_connection.cc
index 34ae9a9ba1f50a739898997dae6891e75cf3384b..99fbb773844b68c52f7f74a58c050faa9f14a13f 100644
--- a/mojo/shell/content_handler_connection.cc
+++ b/mojo/shell/content_handler_connection.cc
@@ -14,19 +14,27 @@
ContentHandlerConnection::ContentHandlerConnection(
ApplicationManager* manager,
- const Identity& source,
- const Identity& content_handler,
+ const Identity& originator_identity,
+ const CapabilityFilter& originator_filter,
+ const GURL& content_handler_url,
+ const std::string& qualifier,
+ const CapabilityFilter& filter,
uint32_t id)
: manager_(manager),
- identity_(content_handler),
+ content_handler_url_(content_handler_url),
+ content_handler_qualifier_(qualifier),
connection_closed_(false),
id_(id) {
ServiceProviderPtr services;
scoped_ptr<ConnectToApplicationParams> params(new ConnectToApplicationParams);
- params->set_source(source);
- params->SetTarget(identity_);
+ params->set_originator_identity(originator_identity);
+ params->set_originator_filter(originator_filter);
+ params->SetURLInfo(content_handler_url);
+ params->set_qualifier(qualifier);
params->set_services(GetProxy(&services));
+ params->set_filter(filter);
+
manager->ConnectToApplication(params.Pass());
MessagePipe pipe;
« no previous file with comments | « mojo/shell/content_handler_connection.h ('k') | mojo/shell/identity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698