| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SUPERVISED_USER_SUPERVISED_USER_NAVIGATION_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_NAVIGATION_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_NAVIGATION_OBSERVER_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_NAVIGATION_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" | 11 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" |
| 12 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" | 12 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" |
| 13 #include "chrome/browser/supervised_user/supervised_users.h" | 13 #include "chrome/browser/supervised_user/supervised_users.h" |
| 14 #include "components/sessions/core/serialized_navigation_entry.h" | 14 #include "components/sessions/core/serialized_navigation_entry.h" |
| 15 #include "components/supervised_user_error_page/supervised_user_error_page.h" | 15 #include "components/supervised_user_error_page/supervised_user_error_page.h" |
| 16 #include "content/public/browser/resource_request_info.h" | 16 #include "content/public/browser/resource_request_info.h" |
| 17 #include "content/public/browser/web_contents_observer.h" | 17 #include "content/public/browser/web_contents_observer.h" |
| 18 #include "content/public/browser/web_contents_user_data.h" | 18 #include "content/public/browser/web_contents_user_data.h" |
| 19 | 19 |
| 20 class SupervisedUserService; | 20 class SupervisedUserService; |
| 21 | 21 |
| 22 namespace content { | 22 namespace content { |
| 23 class NavigationEntry; | |
| 24 class NavigationHandle; | 23 class NavigationHandle; |
| 25 class WebContents; | 24 class WebContents; |
| 26 } | 25 } |
| 27 | 26 |
| 28 class SupervisedUserNavigationObserver | 27 class SupervisedUserNavigationObserver |
| 29 : public content::WebContentsUserData<SupervisedUserNavigationObserver>, | 28 : public content::WebContentsUserData<SupervisedUserNavigationObserver>, |
| 30 public content::WebContentsObserver, | 29 public content::WebContentsObserver, |
| 31 public SupervisedUserServiceObserver { | 30 public SupervisedUserServiceObserver { |
| 32 public: | 31 public: |
| 33 ~SupervisedUserNavigationObserver() override; | 32 ~SupervisedUserNavigationObserver() override; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 72 |
| 74 std::vector<std::unique_ptr<const sessions::SerializedNavigationEntry>> | 73 std::vector<std::unique_ptr<const sessions::SerializedNavigationEntry>> |
| 75 blocked_navigations_; | 74 blocked_navigations_; |
| 76 | 75 |
| 77 base::WeakPtrFactory<SupervisedUserNavigationObserver> weak_ptr_factory_; | 76 base::WeakPtrFactory<SupervisedUserNavigationObserver> weak_ptr_factory_; |
| 78 | 77 |
| 79 DISALLOW_COPY_AND_ASSIGN(SupervisedUserNavigationObserver); | 78 DISALLOW_COPY_AND_ASSIGN(SupervisedUserNavigationObserver); |
| 80 }; | 79 }; |
| 81 | 80 |
| 82 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_NAVIGATION_OBSERVER_H_ | 81 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_NAVIGATION_OBSERVER_H_ |
| OLD | NEW |