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

Unified Diff: extensions/common/host_id.h

Issue 885493007: Refactoring: de-couple Extensions from "script injection System" [render side] : 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « extensions/browser/guest_view/web_view/web_view_guest.h ('k') | extensions/common/host_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/host_id.h
diff --git a/extensions/common/host_id.h b/extensions/common/host_id.h
index 004480704f07766662006c7c3c570883c7e9a296..d977a44243d252e44527e68aae5ab581de3acd24 100644
--- a/extensions/common/host_id.h
+++ b/extensions/common/host_id.h
@@ -12,17 +12,13 @@
struct HostID {
enum HostType { EXTENSIONS, WEBUI };
- HostID() {}
- HostID(HostType type, const std::string& id)
- : type_(type), id_(id) {}
-
- bool operator<(const HostID& host_id) const {
- if (type_ != host_id.type())
- return type_ < host_id.type();
- else if (id_ != host_id.id())
- return id_ < host_id.id();
- return false;
- }
+ HostID();
+ HostID(HostType type, const std::string& id);
+ HostID(const HostID& host_id);
+ ~HostID();
+
+ bool operator<(const HostID& host_id) const;
+ bool operator==(const HostID& host_id) const;
HostType type() const { return type_; }
const std::string& id() const { return id_; }
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest.h ('k') | extensions/common/host_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698