| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MANAGED_MODE_MANAGED_MODE_NAVIGATION_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_NAVIGATION_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_NAVIGATION_OBSERVER_H_ | 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_NAVIGATION_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 const base::Callback<void(bool)>& callback); | 43 const base::Callback<void(bool)>& callback); |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 friend class content::WebContentsUserData<ManagedModeNavigationObserver>; | 46 friend class content::WebContentsUserData<ManagedModeNavigationObserver>; |
| 47 | 47 |
| 48 explicit ManagedModeNavigationObserver(content::WebContents* web_contents); | 48 explicit ManagedModeNavigationObserver(content::WebContents* web_contents); |
| 49 | 49 |
| 50 // content::WebContentsObserver implementation. | 50 // content::WebContentsObserver implementation. |
| 51 virtual void ProvisionalChangeToMainFrameUrl( | 51 virtual void ProvisionalChangeToMainFrameUrl( |
| 52 const GURL& url, | 52 const GURL& url, |
| 53 content::RenderViewHost* render_view_host) OVERRIDE; | 53 content::RenderFrameHost* render_frame_host) OVERRIDE; |
| 54 virtual void DidCommitProvisionalLoadForFrame( | 54 virtual void DidCommitProvisionalLoadForFrame( |
| 55 int64 frame_id, | 55 int64 frame_id, |
| 56 const base::string16& frame_unique_name, | 56 const base::string16& frame_unique_name, |
| 57 bool is_main_frame, | 57 bool is_main_frame, |
| 58 const GURL& url, | 58 const GURL& url, |
| 59 content::PageTransition transition_type, | 59 content::PageTransition transition_type, |
| 60 content::RenderViewHost* render_view_host) OVERRIDE; | 60 content::RenderViewHost* render_view_host) OVERRIDE; |
| 61 | 61 |
| 62 void OnRequestBlockedInternal(const GURL& url); | 62 void OnRequestBlockedInternal(const GURL& url); |
| 63 | 63 |
| 64 // Owned by the profile, so outlives us. | 64 // Owned by the profile, so outlives us. |
| 65 ManagedUserService* managed_user_service_; | 65 ManagedUserService* managed_user_service_; |
| 66 | 66 |
| 67 // Owned by ManagedUserService. | 67 // Owned by ManagedUserService. |
| 68 const ManagedModeURLFilter* url_filter_; | 68 const ManagedModeURLFilter* url_filter_; |
| 69 | 69 |
| 70 // Owned by the InfoBarService, which has the same lifetime as this object. | 70 // Owned by the InfoBarService, which has the same lifetime as this object. |
| 71 InfoBar* warn_infobar_; | 71 InfoBar* warn_infobar_; |
| 72 | 72 |
| 73 ScopedVector<const content::NavigationEntry> blocked_navigations_; | 73 ScopedVector<const content::NavigationEntry> blocked_navigations_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(ManagedModeNavigationObserver); | 75 DISALLOW_COPY_AND_ASSIGN(ManagedModeNavigationObserver); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_NAVIGATION_OBSERVER_H_ | 78 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_NAVIGATION_OBSERVER_H_ |
| OLD | NEW |