Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: chrome/browser/managed_mode/managed_mode_navigation_observer.h

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 InfoBarDelegate; 17 class InfoBar;
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 void OnRequestBlockedInternal(const GURL& url); 61 void OnRequestBlockedInternal(const GURL& url);
62 62
63 // Owned by the profile, so outlives us. 63 // Owned by the profile, so outlives us.
64 ManagedUserService* managed_user_service_; 64 ManagedUserService* managed_user_service_;
65 65
66 // Owned by ManagedUserService. 66 // Owned by ManagedUserService.
67 const ManagedModeURLFilter* url_filter_; 67 const ManagedModeURLFilter* url_filter_;
68 68
69 // Owned by the InfoBarService, which has the same lifetime as this object. 69 // Owned by the InfoBarService, which has the same lifetime as this object.
70 InfoBarDelegate* warn_infobar_; 70 InfoBar* warn_infobar_;
71 71
72 ScopedVector<const content::NavigationEntry> blocked_navigations_; 72 ScopedVector<const content::NavigationEntry> blocked_navigations_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(ManagedModeNavigationObserver); 74 DISALLOW_COPY_AND_ASSIGN(ManagedModeNavigationObserver);
75 }; 75 };
76 76
77 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_NAVIGATION_OBSERVER_H_ 77 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_NAVIGATION_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698