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

Side by Side Diff: chrome/browser/tab_contents/navigation_entry.h

Issue 4194007: Revert "Refactor automation messages." due to mysterious problems on mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/ref_counted.h" 12 #include "base/ref_counted.h"
13 #include "chrome/common/page_type.h" 13 #include "chrome/browser/tab_contents/security_style.h"
14 #include "chrome/common/page_transition_types.h" 14 #include "chrome/common/page_transition_types.h"
15 #include "chrome/common/security_style.h"
16 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
17 #include "third_party/skia/include/core/SkBitmap.h" 16 #include "third_party/skia/include/core/SkBitmap.h"
18 17
19 class NavigationController; 18 class NavigationController;
20 class SiteInstance; 19 class SiteInstance;
21 20
22 //////////////////////////////////////////////////////////////////////////////// 21 ////////////////////////////////////////////////////////////////////////////////
23 // 22 //
24 // NavigationEntry class 23 // NavigationEntry class
25 // 24 //
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 SecurityStyle security_style_; 125 SecurityStyle security_style_;
127 int cert_id_; 126 int cert_id_;
128 int cert_status_; 127 int cert_status_;
129 int security_bits_; 128 int security_bits_;
130 int connection_status_; 129 int connection_status_;
131 int content_status_; 130 int content_status_;
132 131
133 // Copy and assignment is explicitly allowed for this class. 132 // Copy and assignment is explicitly allowed for this class.
134 }; 133 };
135 134
135 // The type of the page an entry corresponds to. Used by tests.
136 enum PageType {
137 NORMAL_PAGE = 0,
138 ERROR_PAGE,
139 INTERSTITIAL_PAGE
140 };
141
136 // Favicon ------------------------------------------------------------------- 142 // Favicon -------------------------------------------------------------------
137 143
138 // Collects the favicon related information for a NavigationEntry. 144 // Collects the favicon related information for a NavigationEntry.
139 class FaviconStatus { 145 class FaviconStatus {
140 public: 146 public:
141 FaviconStatus(); 147 FaviconStatus();
142 148
143 // Indicates whether we've gotten an official favicon for the page, or are 149 // Indicates whether we've gotten an official favicon for the page, or are
144 // just using the default favicon. 150 // just using the default favicon.
145 void set_is_valid(bool is_valid) { 151 void set_is_valid(bool is_valid) {
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 // This is a cached version of the result of GetTitleForDisplay. It prevents 429 // This is a cached version of the result of GetTitleForDisplay. It prevents
424 // us from having to do URL formatting on the URL evey time the title is 430 // us from having to do URL formatting on the URL evey time the title is
425 // displayed. When the URL, virtual URL, or title is set, this should be 431 // displayed. When the URL, virtual URL, or title is set, this should be
426 // cleared to force a refresh. 432 // cleared to force a refresh.
427 string16 cached_display_title_; 433 string16 cached_display_title_;
428 434
429 // Copy and assignment is explicitly allowed for this class. 435 // Copy and assignment is explicitly allowed for this class.
430 }; 436 };
431 437
432 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ 438 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698