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

Side by Side Diff: content/public/browser/web_contents_delegate.cc

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/public/child/request_peer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/public/browser/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 const std::string& partition_id, 146 const std::string& partition_id,
147 SessionStorageNamespace* session_storage_namespace) { 147 SessionStorageNamespace* session_storage_namespace) {
148 return true; 148 return true;
149 } 149 }
150 150
151 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager( 151 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager(
152 WebContents* source) { 152 WebContents* source) {
153 return nullptr; 153 return nullptr;
154 } 154 }
155 155
156 scoped_ptr<BluetoothChooser> WebContentsDelegate::RunBluetoothChooser( 156 std::unique_ptr<BluetoothChooser> WebContentsDelegate::RunBluetoothChooser(
157 RenderFrameHost* frame, 157 RenderFrameHost* frame,
158 const BluetoothChooser::EventHandler& event_handler) { 158 const BluetoothChooser::EventHandler& event_handler) {
159 return nullptr; 159 return nullptr;
160 } 160 }
161 161
162 bool WebContentsDelegate::EmbedsFullscreenWidget() const { 162 bool WebContentsDelegate::EmbedsFullscreenWidget() const {
163 return false; 163 return false;
164 } 164 }
165 165
166 bool WebContentsDelegate::IsFullscreenForTabOrPending( 166 bool WebContentsDelegate::IsFullscreenForTabOrPending(
(...skipping 12 matching lines...) Expand all
179 const std::vector<ColorSuggestion>& suggestions) { 179 const std::vector<ColorSuggestion>& suggestions) {
180 return nullptr; 180 return nullptr;
181 } 181 }
182 182
183 void WebContentsDelegate::RequestMediaAccessPermission( 183 void WebContentsDelegate::RequestMediaAccessPermission(
184 WebContents* web_contents, 184 WebContents* web_contents,
185 const MediaStreamRequest& request, 185 const MediaStreamRequest& request,
186 const MediaResponseCallback& callback) { 186 const MediaResponseCallback& callback) {
187 LOG(ERROR) << "WebContentsDelegate::RequestMediaAccessPermission: " 187 LOG(ERROR) << "WebContentsDelegate::RequestMediaAccessPermission: "
188 << "Not supported."; 188 << "Not supported.";
189 callback.Run(MediaStreamDevices(), 189 callback.Run(MediaStreamDevices(), MEDIA_DEVICE_NOT_SUPPORTED,
190 MEDIA_DEVICE_NOT_SUPPORTED, 190 std::unique_ptr<MediaStreamUI>());
191 scoped_ptr<MediaStreamUI>());
192 } 191 }
193 192
194 bool WebContentsDelegate::CheckMediaAccessPermission( 193 bool WebContentsDelegate::CheckMediaAccessPermission(
195 WebContents* web_contents, 194 WebContents* web_contents,
196 const GURL& security_origin, 195 const GURL& security_origin,
197 MediaStreamType type) { 196 MediaStreamType type) {
198 LOG(ERROR) << "WebContentsDelegate::CheckMediaAccessPermission: " 197 LOG(ERROR) << "WebContentsDelegate::CheckMediaAccessPermission: "
199 << "Not supported."; 198 << "Not supported.";
200 return false; 199 return false;
201 } 200 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 void WebContentsDelegate::ShowCertificateViewerInDevTools( 255 void WebContentsDelegate::ShowCertificateViewerInDevTools(
257 WebContents* web_contents, 256 WebContents* web_contents,
258 int cert_id) { 257 int cert_id) {
259 } 258 }
260 259
261 void WebContentsDelegate::RequestAppBannerFromDevTools( 260 void WebContentsDelegate::RequestAppBannerFromDevTools(
262 content::WebContents* web_contents) { 261 content::WebContents* web_contents) {
263 } 262 }
264 263
265 } // namespace content 264 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/public/child/request_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698