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

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

Issue 787033004: Update geolocation permission tests for the permission bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes for timvolodine Created 6 years 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // at which time the caller is free to delete the request. 52 // at which time the caller is free to delete the request.
53 virtual void CancelRequest(PermissionBubbleRequest* request); 53 virtual void CancelRequest(PermissionBubbleRequest* request);
54 54
55 // Sets the active view for the permission bubble. If this is NULL, it 55 // Sets the active view for the permission bubble. If this is NULL, it
56 // means any existing permission bubble can no longer be shown. Does not 56 // means any existing permission bubble can no longer be shown. Does not
57 // take ownership of the view. 57 // take ownership of the view.
58 void SetView(PermissionBubbleView* view) override; 58 void SetView(PermissionBubbleView* view) override;
59 59
60 private: 60 private:
61 friend class DownloadRequestLimiterTest; 61 friend class DownloadRequestLimiterTest;
62 friend class GeolocationBrowserTest;
63 friend class GeolocationPermissionContextTests;
62 friend class PermissionBubbleManagerTest; 64 friend class PermissionBubbleManagerTest;
63 friend class PermissionContextBaseTests; 65 friend class PermissionContextBaseTests;
64 friend class content::WebContentsUserData<PermissionBubbleManager>; 66 friend class content::WebContentsUserData<PermissionBubbleManager>;
65 67
66 explicit PermissionBubbleManager(content::WebContents* web_contents); 68 explicit PermissionBubbleManager(content::WebContents* web_contents);
67 69
68 // WebContentsObserver: 70 // WebContentsObserver:
69 void DocumentOnLoadCompletedInMainFrame() override; 71 void DocumentOnLoadCompletedInMainFrame() override;
70 void DocumentLoadedInFrame( 72 void DocumentLoadedInFrame(
71 content::RenderFrameHost* render_frame_host) override; 73 content::RenderFrameHost* render_frame_host) override;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 GURL request_url_; 127 GURL request_url_;
126 bool request_url_has_loaded_; 128 bool request_url_has_loaded_;
127 129
128 std::vector<bool> accept_states_; 130 std::vector<bool> accept_states_;
129 bool customization_mode_; 131 bool customization_mode_;
130 132
131 base::WeakPtrFactory<PermissionBubbleManager> weak_factory_; 133 base::WeakPtrFactory<PermissionBubbleManager> weak_factory_;
132 }; 134 };
133 135
134 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_ 136 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698