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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_permission_helper.h

Issue 1909773002: Convert //extensions/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/metrics/user_metrics_action.h" 10 #include "base/metrics/user_metrics_action.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 content::RenderFrameHost* render_frame_host) override; 146 content::RenderFrameHost* render_frame_host) override;
147 bool OnMessageReceived(const IPC::Message& message) override; 147 bool OnMessageReceived(const IPC::Message& message) override;
148 #endif // defined(ENABLE_PLUGINS) 148 #endif // defined(ENABLE_PLUGINS)
149 149
150 // A counter to generate a unique request id for a permission request. 150 // A counter to generate a unique request id for a permission request.
151 // We only need the ids to be unique for a given WebViewGuest. 151 // We only need the ids to be unique for a given WebViewGuest.
152 int next_permission_request_id_; 152 int next_permission_request_id_;
153 153
154 WebViewPermissionHelper::RequestMap pending_permission_requests_; 154 WebViewPermissionHelper::RequestMap pending_permission_requests_;
155 155
156 scoped_ptr<WebViewPermissionHelperDelegate> 156 std::unique_ptr<WebViewPermissionHelperDelegate>
157 web_view_permission_helper_delegate_; 157 web_view_permission_helper_delegate_;
158 158
159 WebViewGuest* const web_view_guest_; 159 WebViewGuest* const web_view_guest_;
160 160
161 base::WeakPtrFactory<WebViewPermissionHelper> weak_factory_; 161 base::WeakPtrFactory<WebViewPermissionHelper> weak_factory_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelper); 163 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelper);
164 }; 164 };
165 165
166 } // namespace extensions 166 } // namespace extensions
167 167
168 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_ 168 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698