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

Unified Diff: chrome/browser/tab_contents/navigation_entry.h

Issue 6369003: New extension API: "tab.socketAddress" (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 11 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
Index: chrome/browser/tab_contents/navigation_entry.h
===================================================================
--- chrome/browser/tab_contents/navigation_entry.h (revision 71766)
+++ chrome/browser/tab_contents/navigation_entry.h (working copy)
@@ -370,6 +370,15 @@
return has_post_data_;
}
+ // Remote address of the socket which fetched this resource, for presenting
+ // to inquisitive users. Can be "ipv4:port", "[ipv6]:port", or empty.
+ void set_socket_address(const std::string& addr) {
+ socket_address_ = addr;
+ }
+ const std::string& socket_address() const {
+ return socket_address_;
+ }
+
// Enumerations of the possible restore types.
enum RestoreType {
// The entry has been restored is from the last session.
@@ -415,6 +424,7 @@
PageTransition::Type transition_type_;
GURL user_typed_url_;
bool has_post_data_;
+ std::string socket_address_;
RestoreType restore_type_;
// This is a cached version of the result of GetTitleForDisplay. It prevents

Powered by Google App Engine
This is Rietveld 408576698