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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 private: | 60 private: |
61 friend class PermissionBubbleManagerTest; | 61 friend class PermissionBubbleManagerTest; |
62 friend class DownloadRequestLimiterTest; | 62 friend class DownloadRequestLimiterTest; |
63 friend class content::WebContentsUserData<PermissionBubbleManager>; | 63 friend class content::WebContentsUserData<PermissionBubbleManager>; |
64 | 64 |
65 explicit PermissionBubbleManager(content::WebContents* web_contents); | 65 explicit PermissionBubbleManager(content::WebContents* web_contents); |
66 | 66 |
67 // WebContentsObserver: | 67 // WebContentsObserver: |
68 virtual void DocumentOnLoadCompletedInMainFrame() OVERRIDE; | 68 virtual void DocumentOnLoadCompletedInMainFrame() OVERRIDE; |
69 virtual void DocumentLoadedInFrame( | 69 virtual void DocumentLoadedInFrame( |
70 int64 frame_id, | 70 content::RenderFrameHost* render_frame_host) OVERRIDE; |
71 content::RenderViewHost* render_view_host) OVERRIDE; | |
72 | 71 |
73 // If a page on which permissions requests are pending is navigated, | 72 // If a page on which permissions requests are pending is navigated, |
74 // they will be finalized as if canceled by the user. | 73 // they will be finalized as if canceled by the user. |
75 virtual void NavigationEntryCommitted( | 74 virtual void NavigationEntryCommitted( |
76 const content::LoadCommittedDetails& details) OVERRIDE; | 75 const content::LoadCommittedDetails& details) OVERRIDE; |
77 virtual void WebContentsDestroyed() OVERRIDE; | 76 virtual void WebContentsDestroyed() OVERRIDE; |
78 | 77 |
79 // PermissionBubbleView::Delegate: | 78 // PermissionBubbleView::Delegate: |
80 virtual void ToggleAccept(int request_index, bool new_value) OVERRIDE; | 79 virtual void ToggleAccept(int request_index, bool new_value) OVERRIDE; |
81 virtual void SetCustomizationMode() OVERRIDE; | 80 virtual void SetCustomizationMode() OVERRIDE; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 GURL request_url_; | 124 GURL request_url_; |
126 bool request_url_has_loaded_; | 125 bool request_url_has_loaded_; |
127 | 126 |
128 std::vector<bool> accept_states_; | 127 std::vector<bool> accept_states_; |
129 bool customization_mode_; | 128 bool customization_mode_; |
130 | 129 |
131 base::WeakPtrFactory<PermissionBubbleManager> weak_factory_; | 130 base::WeakPtrFactory<PermissionBubbleManager> weak_factory_; |
132 }; | 131 }; |
133 | 132 |
134 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_ | 133 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_ |
OLD | NEW |