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

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

Issue 15715005: Remove passphrase dialog and last parts of elevation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 7 years, 6 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 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 11 matching lines...) Expand all
22 22
23 class ManagedModeNavigationObserver 23 class ManagedModeNavigationObserver
24 : public content::WebContentsObserver, 24 : public content::WebContentsObserver,
25 public content::WebContentsUserData<ManagedModeNavigationObserver> { 25 public content::WebContentsUserData<ManagedModeNavigationObserver> {
26 public: 26 public:
27 virtual ~ManagedModeNavigationObserver(); 27 virtual ~ManagedModeNavigationObserver();
28 28
29 // Sets the specific infobar as dismissed. 29 // Sets the specific infobar as dismissed.
30 void WarnInfobarDismissed(); 30 void WarnInfobarDismissed();
31 31
32 // Returns the elevation state for the corresponding WebContents.
33 bool is_elevated() const;
34
35 // Set the elevation state for the corresponding WebContents.
36 void set_elevated(bool is_elevated);
37
38 const std::vector<const content::NavigationEntry*>* blocked_navigations() 32 const std::vector<const content::NavigationEntry*>* blocked_navigations()
39 const { 33 const {
40 return &blocked_navigations_.get(); 34 return &blocked_navigations_.get();
41 } 35 }
42 36
43 // Called when a network request to |url| is blocked. 37 // Called when a network request to |url| is blocked.
44 static void OnRequestBlocked(int render_process_host_id, 38 static void OnRequestBlocked(int render_process_host_id,
45 int render_view_id, 39 int render_view_id,
46 const GURL& url, 40 const GURL& url,
47 const base::Callback<void(bool)>& callback); 41 const base::Callback<void(bool)>& callback);
(...skipping 20 matching lines...) Expand all
68 ManagedUserService* managed_user_service_; 62 ManagedUserService* managed_user_service_;
69 63
70 // Owned by ManagedUserService. 64 // Owned by ManagedUserService.
71 const ManagedModeURLFilter* url_filter_; 65 const ManagedModeURLFilter* url_filter_;
72 66
73 // Owned by the InfoBarService, which has the same lifetime as this object. 67 // Owned by the InfoBarService, which has the same lifetime as this object.
74 InfoBarDelegate* warn_infobar_delegate_; 68 InfoBarDelegate* warn_infobar_delegate_;
75 69
76 ScopedVector<const content::NavigationEntry> blocked_navigations_; 70 ScopedVector<const content::NavigationEntry> blocked_navigations_;
77 71
78 // The elevation state corresponding to the current WebContents.
79 // Will be set to true for non-managed users.
80 bool is_elevated_;
81
82 DISALLOW_COPY_AND_ASSIGN(ManagedModeNavigationObserver); 72 DISALLOW_COPY_AND_ASSIGN(ManagedModeNavigationObserver);
83 }; 73 };
84 74
85 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_NAVIGATION_OBSERVER_H_ 75 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_NAVIGATION_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/managed_mode/managed_mode_navigation_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698