| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 | 11 |
| 12 #include "base/linked_ptr.h" | 12 #include "base/linked_ptr.h" |
| 13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
| 14 #include "base/string16.h" |
| 14 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 15 #include "chrome/browser/sessions/session_id.h" | 16 #include "chrome/browser/sessions/session_id.h" |
| 16 #include "chrome/browser/ssl/ssl_manager.h" | 17 #include "chrome/browser/ssl/ssl_manager.h" |
| 17 #include "chrome/browser/tab_contents/tab_contents_type.h" | 18 #include "chrome/browser/tab_contents/tab_contents_type.h" |
| 18 #include "chrome/common/navigation_types.h" | 19 #include "chrome/common/navigation_types.h" |
| 19 #include "chrome/common/page_transition_types.h" | 20 #include "chrome/common/page_transition_types.h" |
| 20 | 21 |
| 21 class NavigationEntry; | 22 class NavigationEntry; |
| 22 class GURL; | 23 class GURL; |
| 23 class Profile; | 24 class Profile; |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 // refs without reload, only change to "#" which we don't count as empty). | 354 // refs without reload, only change to "#" which we don't count as empty). |
| 354 bool IsURLInPageNavigation(const GURL& url) const; | 355 bool IsURLInPageNavigation(const GURL& url) const; |
| 355 | 356 |
| 356 // Random data --------------------------------------------------------------- | 357 // Random data --------------------------------------------------------------- |
| 357 | 358 |
| 358 // Returns true if this NavigationController is is configured to load a URL | 359 // Returns true if this NavigationController is is configured to load a URL |
| 359 // lazily. If true, use GetLazyTitle() and GetLazyFavIcon() to discover the | 360 // lazily. If true, use GetLazyTitle() and GetLazyFavIcon() to discover the |
| 360 // titles and favicons. Since no request was made, this is the only info | 361 // titles and favicons. Since no request was made, this is the only info |
| 361 // we have about this page. This feature is used by web application clusters. | 362 // we have about this page. This feature is used by web application clusters. |
| 362 bool LoadingURLLazily(); | 363 bool LoadingURLLazily(); |
| 363 const std::wstring& GetLazyTitle() const; | 364 const string16& GetLazyTitle() const; |
| 364 const SkBitmap& GetLazyFavIcon() const; | 365 const SkBitmap& GetLazyFavIcon() const; |
| 365 | 366 |
| 366 // Returns the identifier used by session restore. | 367 // Returns the identifier used by session restore. |
| 367 const SessionID& session_id() const { return session_id_; } | 368 const SessionID& session_id() const { return session_id_; } |
| 368 | 369 |
| 369 // Identifier of the window we're in. | 370 // Identifier of the window we're in. |
| 370 void SetWindowID(const SessionID& id); | 371 void SetWindowID(const SessionID& id); |
| 371 const SessionID& window_id() const { return window_id_; } | 372 const SessionID& window_id() const { return window_id_; } |
| 372 | 373 |
| 373 SSLManager* ssl_manager() { return &ssl_manager_; } | 374 SSLManager* ssl_manager() { return &ssl_manager_; } |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 // when testing. | 550 // when testing. |
| 550 static bool check_for_repost_; | 551 static bool check_for_repost_; |
| 551 | 552 |
| 552 // The maximum number of entries that a navigation controller can store. | 553 // The maximum number of entries that a navigation controller can store. |
| 553 static size_t max_entry_count_; | 554 static size_t max_entry_count_; |
| 554 | 555 |
| 555 DISALLOW_COPY_AND_ASSIGN(NavigationController); | 556 DISALLOW_COPY_AND_ASSIGN(NavigationController); |
| 556 }; | 557 }; |
| 557 | 558 |
| 558 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 559 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
| OLD | NEW |