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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // 363 //
364 // The actual post data is stored in the content_state and is extracted by 364 // The actual post data is stored in the content_state and is extracted by
365 // WebKit to actually make the request. 365 // WebKit to actually make the request.
366 void set_has_post_data(bool has_post_data) { 366 void set_has_post_data(bool has_post_data) {
367 has_post_data_ = has_post_data; 367 has_post_data_ = has_post_data;
368 } 368 }
369 bool has_post_data() const { 369 bool has_post_data() const {
370 return has_post_data_; 370 return has_post_data_;
371 } 371 }
372 372
373 // Remote address of the socket which fetched this resource, for presenting
374 // to inquisitive users. Can be "ipv4:port", "[ipv6]:port", or empty.
375 void set_socket_address(const std::string& addr) {
376 socket_address_ = addr;
377 }
378 const std::string& socket_address() const {
379 return socket_address_;
380 }
381
373 // Enumerations of the possible restore types. 382 // Enumerations of the possible restore types.
374 enum RestoreType { 383 enum RestoreType {
375 // The entry has been restored is from the last session. 384 // The entry has been restored is from the last session.
376 RESTORE_LAST_SESSION, 385 RESTORE_LAST_SESSION,
377 386
378 // The entry has been restored from the current session. This is used when 387 // The entry has been restored from the current session. This is used when
379 // the user issues 'reopen closed tab'. 388 // the user issues 'reopen closed tab'.
380 RESTORE_CURRENT_SESSION, 389 RESTORE_CURRENT_SESSION,
381 390
382 // The entry was not restored. 391 // The entry was not restored.
(...skipping 25 matching lines...) Expand all
408 GURL virtual_url_; 417 GURL virtual_url_;
409 bool update_virtual_url_with_url_; 418 bool update_virtual_url_with_url_;
410 string16 title_; 419 string16 title_;
411 FaviconStatus favicon_; 420 FaviconStatus favicon_;
412 std::string content_state_; 421 std::string content_state_;
413 int32 page_id_; 422 int32 page_id_;
414 SSLStatus ssl_; 423 SSLStatus ssl_;
415 PageTransition::Type transition_type_; 424 PageTransition::Type transition_type_;
416 GURL user_typed_url_; 425 GURL user_typed_url_;
417 bool has_post_data_; 426 bool has_post_data_;
427 std::string socket_address_;
418 RestoreType restore_type_; 428 RestoreType restore_type_;
419 429
420 // This is a cached version of the result of GetTitleForDisplay. It prevents 430 // This is a cached version of the result of GetTitleForDisplay. It prevents
421 // us from having to do URL formatting on the URL evey time the title is 431 // us from having to do URL formatting on the URL evey time the title is
422 // displayed. When the URL, virtual URL, or title is set, this should be 432 // displayed. When the URL, virtual URL, or title is set, this should be
423 // cleared to force a refresh. 433 // cleared to force a refresh.
424 string16 cached_display_title_; 434 string16 cached_display_title_;
425 435
426 // Copy and assignment is explicitly allowed for this class. 436 // Copy and assignment is explicitly allowed for this class.
427 }; 437 };
428 438
429 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ 439 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698