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

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

Issue 622343002: replace OVERRIDE and FINAL with override and final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
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/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/metrics/user_metrics_action.h" 9 #include "base/metrics/user_metrics_action.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 private: 137 private:
138 void OnMediaPermissionResponse(const content::MediaStreamRequest& request, 138 void OnMediaPermissionResponse(const content::MediaStreamRequest& request,
139 const content::MediaResponseCallback& callback, 139 const content::MediaResponseCallback& callback,
140 bool allow, 140 bool allow,
141 const std::string& user_input); 141 const std::string& user_input);
142 142
143 #if defined(ENABLE_PLUGINS) 143 #if defined(ENABLE_PLUGINS)
144 // content::WebContentsObserver implementation. 144 // content::WebContentsObserver implementation.
145 virtual bool OnMessageReceived( 145 virtual bool OnMessageReceived(
146 const IPC::Message& message, 146 const IPC::Message& message,
147 content::RenderFrameHost* render_frame_host) OVERRIDE; 147 content::RenderFrameHost* render_frame_host) override;
148 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 148 virtual bool OnMessageReceived(const IPC::Message& message) override;
149 #endif // defined(ENABLE_PLUGINS) 149 #endif // defined(ENABLE_PLUGINS)
150 150
151 // A counter to generate a unique request id for a permission request. 151 // A counter to generate a unique request id for a permission request.
152 // We only need the ids to be unique for a given WebViewGuest. 152 // We only need the ids to be unique for a given WebViewGuest.
153 int next_permission_request_id_; 153 int next_permission_request_id_;
154 154
155 WebViewPermissionHelper::RequestMap pending_permission_requests_; 155 WebViewPermissionHelper::RequestMap pending_permission_requests_;
156 156
157 scoped_ptr<WebViewPermissionHelperDelegate> 157 scoped_ptr<WebViewPermissionHelperDelegate>
158 web_view_permission_helper_delegate_; 158 web_view_permission_helper_delegate_;
159 159
160 WebViewGuest* const web_view_guest_; 160 WebViewGuest* const web_view_guest_;
161 161
162 base::WeakPtrFactory<WebViewPermissionHelper> weak_factory_; 162 base::WeakPtrFactory<WebViewPermissionHelper> weak_factory_;
163 163
164 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelper); 164 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelper);
165 }; 165 };
166 166
167 } // namespace extensions 167 } // namespace extensions
168 168
169 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_ 169 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest.h ('k') | extensions/browser/image_loader_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698