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 |
11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/managed_mode/managed_users.h" | 13 #include "chrome/browser/managed_mode/managed_users.h" |
14 #include "content/public/browser/web_contents_observer.h" | 14 #include "content/public/browser/web_contents_observer.h" |
15 #include "content/public/browser/web_contents_user_data.h" | 15 #include "content/public/browser/web_contents_user_data.h" |
16 | 16 |
17 class InfoBar; | 17 class InfoBarDelegate; |
18 class ManagedModeURLFilter; | 18 class ManagedModeURLFilter; |
19 class ManagedUserService; | 19 class ManagedUserService; |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 class NavigationEntry; | 22 class NavigationEntry; |
23 } | 23 } |
24 | 24 |
25 class ManagedModeNavigationObserver | 25 class ManagedModeNavigationObserver |
26 : public content::WebContentsObserver, | 26 : public content::WebContentsObserver, |
27 public content::WebContentsUserData<ManagedModeNavigationObserver> { | 27 public content::WebContentsUserData<ManagedModeNavigationObserver> { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 InfoBarDelegate* 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 |