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

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

Issue 411503005: Change tests to prepare for turning on the permission bubble flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/geolocation/geolocation_permission_context_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // do so. The request will have RequestFinished executed on it if it is found, 51 // do so. The request will have RequestFinished executed on it if it is found,
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 virtual void SetView(PermissionBubbleView* view) override; 58 virtual void SetView(PermissionBubbleView* view) override;
59 59
60 private: 60 private:
61 friend class DownloadRequestLimiterTest;
62 friend class GeolocationPermissionContextTests;
61 friend class PermissionBubbleManagerTest; 63 friend class PermissionBubbleManagerTest;
62 friend class DownloadRequestLimiterTest; 64 friend class PermissionContextBaseTests;
63 friend class content::WebContentsUserData<PermissionBubbleManager>; 65 friend class content::WebContentsUserData<PermissionBubbleManager>;
64 66
65 explicit PermissionBubbleManager(content::WebContents* web_contents); 67 explicit PermissionBubbleManager(content::WebContents* web_contents);
66 68
67 // WebContentsObserver: 69 // WebContentsObserver:
68 virtual void DocumentOnLoadCompletedInMainFrame() override; 70 virtual void DocumentOnLoadCompletedInMainFrame() override;
69 virtual void DocumentLoadedInFrame( 71 virtual void DocumentLoadedInFrame(
70 content::RenderFrameHost* render_frame_host) override; 72 content::RenderFrameHost* render_frame_host) override;
71 73
72 // If a page on which permissions requests are pending is navigated, 74 // If a page on which permissions requests are pending is navigated,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 GURL request_url_; 126 GURL request_url_;
125 bool request_url_has_loaded_; 127 bool request_url_has_loaded_;
126 128
127 std::vector<bool> accept_states_; 129 std::vector<bool> accept_states_;
128 bool customization_mode_; 130 bool customization_mode_;
129 131
130 base::WeakPtrFactory<PermissionBubbleManager> weak_factory_; 132 base::WeakPtrFactory<PermissionBubbleManager> weak_factory_;
131 }; 133 };
132 134
133 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_ 135 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/geolocation_permission_context_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698