Chromium Code Reviews| Index: chrome/browser/managed_mode/managed_mode_navigation_observer.h |
| diff --git a/chrome/browser/managed_mode/managed_mode_navigation_observer.h b/chrome/browser/managed_mode/managed_mode_navigation_observer.h |
| index 1ddd4953e9a79fb2549b6c5dd43ccf931b6df305..58340cea3afc7bd219f3ac2db3dd5625c0c14f6d 100644 |
| --- a/chrome/browser/managed_mode/managed_mode_navigation_observer.h |
| +++ b/chrome/browser/managed_mode/managed_mode_navigation_observer.h |
| @@ -69,8 +69,6 @@ class ManagedModeNavigationObserver |
| // an interstitial for this RenderView. This allows the user to navigate |
| // around on the website after clicking preview. |
| void AddTemporaryException(); |
| - // Updates the ResourceThrottle with the latest user navigation status. |
| - void UpdateExceptionNavigationStatus(); |
| void RemoveTemporaryException(); |
| void AddURLToPatternList(const GURL& url); |
| @@ -102,7 +100,6 @@ class ManagedModeNavigationObserver |
| const GURL& url, |
| content::PageTransition transition_type, |
| content::RenderViewHost* render_view_host) OVERRIDE; |
| - virtual void DidGetUserGesture() OVERRIDE; |
| // Returns whether the user would stay in elevated state if he visits this |
| // URL. |
| @@ -118,12 +115,6 @@ class ManagedModeNavigationObserver |
| InfoBarDelegate* warn_infobar_delegate_; |
| InfoBarDelegate* preview_infobar_delegate_; |
| - // Whether we received a user gesture. |
| - // The goal is to allow automatic redirects (in order not to break the flow |
| - // or show too many interstitials) while not allowing the user to navigate |
| - // to blocked pages. We consider a redirect to be automatic if we did |
| - // not get a user gesture. |
| - bool got_user_gesture_; |
| ObserverState state_; |
| std::set<GURL> navigated_urls_; |
| GURL last_url_; |
| @@ -133,6 +124,7 @@ class ManagedModeNavigationObserver |
| bool is_elevated_; |
| int last_allowed_page_; |
| + bool after_click_on_link_; |
|
Bernhard Bauer
2013/04/08 09:50:50
What does this flag mean?
Sergiu
2013/04/08 12:19:48
I've added a (pretty large) comment.
|
| DISALLOW_COPY_AND_ASSIGN(ManagedModeNavigationObserver); |
| }; |