| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTROLLER_BASE_H_ | 5 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTROLLER_BASE_H_ |
| 6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTROLLER_BASE_H_ | 6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTROLLER_BASE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" | 10 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" |
| 11 #include "content/public/browser/notification_observer.h" | 11 #include "content/public/browser/notification_observer.h" |
| 12 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
| 13 | 13 |
| 14 class ExclusiveAccessManager; | 14 class ExclusiveAccessManager; |
| 15 class GURL; | 15 class GURL; |
| 16 class Profile; | |
| 17 | 16 |
| 18 namespace content { | 17 namespace content { |
| 19 class WebContents; | 18 class WebContents; |
| 20 } | 19 } |
| 21 | 20 |
| 22 // The base class for the different exclusive access controllers like the | 21 // The base class for the different exclusive access controllers like the |
| 23 // FullscreenController, and MouseLockController which controls lifetime for | 22 // FullscreenController, and MouseLockController which controls lifetime for |
| 24 // which the resource (screen/mouse) is held exclusively. | 23 // which the resource (screen/mouse) is held exclusively. |
| 25 class ExclusiveAccessControllerBase : public content::NotificationObserver { | 24 class ExclusiveAccessControllerBase : public content::NotificationObserver { |
| 26 public: | 25 public: |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 84 |
| 86 content::WebContents* tab_with_exclusive_access_ = nullptr; | 85 content::WebContents* tab_with_exclusive_access_ = nullptr; |
| 87 | 86 |
| 88 // The number of bubble re-shows for the current session (reset upon exiting). | 87 // The number of bubble re-shows for the current session (reset upon exiting). |
| 89 int bubble_reshow_count_ = 0; | 88 int bubble_reshow_count_ = 0; |
| 90 | 89 |
| 91 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessControllerBase); | 90 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessControllerBase); |
| 92 }; | 91 }; |
| 93 | 92 |
| 94 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTROLLER_BASE_H
_ | 93 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTROLLER_BASE_H
_ |
| OLD | NEW |