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

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

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

Powered by Google App Engine
This is Rietveld 408576698