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

Unified Diff: mojo/shell/content_handler_connection.h

Issue 1311353005: Adds a way to determine id of content handler that created app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke comment Created 5 years, 4 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/capability_filter_unittest.cc ('k') | mojo/shell/content_handler_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/content_handler_connection.h
diff --git a/mojo/shell/content_handler_connection.h b/mojo/shell/content_handler_connection.h
index 19952652af5fafcf225447c79b1b325e52b2db1d..d93dbee40cd89a74f8f683a6f373f0a296154326 100644
--- a/mojo/shell/content_handler_connection.h
+++ b/mojo/shell/content_handler_connection.h
@@ -25,12 +25,14 @@ class ApplicationManager;
// destruction.
class ContentHandlerConnection {
public:
+ // |id| is a unique identifier for this content handler.
ContentHandlerConnection(ApplicationInstance* originator,
ApplicationManager* manager,
const GURL& content_handler_url,
const GURL& requestor_url,
const std::string& qualifier,
- const CapabilityFilter& filter);
+ const CapabilityFilter& filter,
+ uint32_t id);
// Closes the connection and destroys |this| object.
void CloseConnection();
@@ -40,6 +42,7 @@ class ContentHandlerConnection {
const std::string& content_handler_qualifier() {
return content_handler_qualifier_;
}
+ uint32_t id() const { return id_; }
private:
~ContentHandlerConnection();
@@ -49,6 +52,8 @@ class ContentHandlerConnection {
std::string content_handler_qualifier_;
ContentHandlerPtr content_handler_;
bool connection_closed_;
+ // The id for this content handler.
+ const uint32_t id_;
DISALLOW_COPY_AND_ASSIGN(ContentHandlerConnection);
};
« no previous file with comments | « mojo/shell/capability_filter_unittest.cc ('k') | mojo/shell/content_handler_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698