OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
6 #define CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 #include "content/browser/ssl/ssl_manager.h" | 17 #include "content/browser/ssl/ssl_manager.h" |
| 18 #include "content/common/content_export.h" |
18 #include "content/common/navigation_types.h" | 19 #include "content/common/navigation_types.h" |
19 #include "content/common/page_transition_types.h" | 20 #include "content/common/page_transition_types.h" |
20 | 21 |
21 class NavigationEntry; | 22 class NavigationEntry; |
22 class SessionStorageNamespace; | 23 class SessionStorageNamespace; |
23 class SiteInstance; | 24 class SiteInstance; |
24 class TabContents; | 25 class TabContents; |
25 struct ViewHostMsg_FrameNavigate_Params; | 26 struct ViewHostMsg_FrameNavigate_Params; |
26 | 27 |
27 namespace content { | 28 namespace content { |
28 class BrowserContext; | 29 class BrowserContext; |
29 struct LoadCommittedDetails; | 30 struct LoadCommittedDetails; |
30 } | 31 } |
31 | 32 |
32 // A NavigationController maintains the back-forward list for a single tab and | 33 // A NavigationController maintains the back-forward list for a single tab and |
33 // manages all navigation within that list. | 34 // manages all navigation within that list. |
34 // | 35 // |
35 // The NavigationController also owns all TabContents for the tab. This is to | 36 // The NavigationController also owns all TabContents for the tab. This is to |
36 // make sure that we have at most one TabContents instance per type. | 37 // make sure that we have at most one TabContents instance per type. |
37 class NavigationController { | 38 class CONTENT_EXPORT NavigationController { |
38 public: | 39 public: |
39 | 40 |
40 enum ReloadType { | 41 enum ReloadType { |
41 NO_RELOAD, // Normal load. | 42 NO_RELOAD, // Normal load. |
42 RELOAD, // Normal (cache-validating) reload. | 43 RELOAD, // Normal (cache-validating) reload. |
43 RELOAD_IGNORING_CACHE // Reload bypassing the cache, aka shift-reload. | 44 RELOAD_IGNORING_CACHE // Reload bypassing the cache, aka shift-reload. |
44 }; | 45 }; |
45 | 46 |
46 // --------------------------------------------------------------------------- | 47 // --------------------------------------------------------------------------- |
47 | 48 |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 static size_t max_entry_count_; | 481 static size_t max_entry_count_; |
481 | 482 |
482 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE), | 483 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE), |
483 // NO_RELOAD otherwise. | 484 // NO_RELOAD otherwise. |
484 ReloadType pending_reload_; | 485 ReloadType pending_reload_; |
485 | 486 |
486 DISALLOW_COPY_AND_ASSIGN(NavigationController); | 487 DISALLOW_COPY_AND_ASSIGN(NavigationController); |
487 }; | 488 }; |
488 | 489 |
489 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 490 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |