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

Side by Side Diff: chrome/browser/ui/website_settings/permission_bubble_manager.h

Issue 454253002: Location chooser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing meacer@ comments Created 6 years, 4 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698