| 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_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_ | 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // If a page on which permissions requests are pending is navigated, | 72 // If a page on which permissions requests are pending is navigated, |
| 73 // they will be finalized as if canceled by the user. | 73 // they will be finalized as if canceled by the user. |
| 74 virtual void NavigationEntryCommitted( | 74 virtual void NavigationEntryCommitted( |
| 75 const content::LoadCommittedDetails& details) OVERRIDE; | 75 const content::LoadCommittedDetails& details) OVERRIDE; |
| 76 virtual void WebContentsDestroyed() OVERRIDE; | 76 virtual void WebContentsDestroyed() OVERRIDE; |
| 77 | 77 |
| 78 // PermissionBubbleView::Delegate: | 78 // PermissionBubbleView::Delegate: |
| 79 virtual void ToggleAccept(int request_index, bool new_value) OVERRIDE; | 79 virtual void ToggleAccept(int request_index, bool new_value) OVERRIDE; |
| 80 virtual void SetCustomizationMode() OVERRIDE; | 80 virtual void SetCustomizationMode() OVERRIDE; |
| 81 virtual void Accept() OVERRIDE; | 81 virtual void Accept() OVERRIDE; |
| 82 virtual void Accept(int choice) OVERRIDE; |
| 82 virtual void Deny() OVERRIDE; | 83 virtual void Deny() OVERRIDE; |
| 83 virtual void Closing() OVERRIDE; | 84 virtual void Closing() OVERRIDE; |
| 84 | 85 |
| 85 // Posts a task which will allow the bubble to become visible if it is needed. | 86 // Posts a task which will allow the bubble to become visible if it is needed. |
| 86 void ScheduleShowBubble(); | 87 void ScheduleShowBubble(); |
| 87 | 88 |
| 88 // Shows the bubble if it is not already visible and there are pending | 89 // Shows the bubble if it is not already visible and there are pending |
| 89 // requests. | 90 // requests. |
| 90 void TriggerShowBubble(); | 91 void TriggerShowBubble(); |
| 91 | 92 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 GURL request_url_; | 125 GURL request_url_; |
| 125 bool request_url_has_loaded_; | 126 bool request_url_has_loaded_; |
| 126 | 127 |
| 127 std::vector<bool> accept_states_; | 128 std::vector<bool> accept_states_; |
| 128 bool customization_mode_; | 129 bool customization_mode_; |
| 129 | 130 |
| 130 base::WeakPtrFactory<PermissionBubbleManager> weak_factory_; | 131 base::WeakPtrFactory<PermissionBubbleManager> weak_factory_; |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_ | 134 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_ |
| OLD | NEW |