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

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 18647002: Web MIDI: add RequestMIDISysExPermission to BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android build Created 7 years, 5 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
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 "chrome/browser/profiles/off_the_record_profile_impl.h" 5 #include "chrome/browser/profiles/off_the_record_profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 } 272 }
273 273
274 net::URLRequestContextGetter* 274 net::URLRequestContextGetter*
275 OffTheRecordProfileImpl::GetMediaRequestContextForStoragePartition( 275 OffTheRecordProfileImpl::GetMediaRequestContextForStoragePartition(
276 const base::FilePath& partition_path, 276 const base::FilePath& partition_path,
277 bool in_memory) { 277 bool in_memory) {
278 return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory) 278 return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory)
279 .get(); 279 .get();
280 } 280 }
281 281
282 void OffTheRecordProfileImpl::RequestMIDISysExPermission(
283 int render_process_id,
284 int render_view_id,
285 int client_id,
286 const GURL& requesting_frame,
287 const MIDISysExPermissionCallback& callback) {
288 // TODO(toyoshim): Implement.
289 callback.Run(render_process_id, render_view_id, client_id, false);
290 }
291
282 net::URLRequestContextGetter* 292 net::URLRequestContextGetter*
283 OffTheRecordProfileImpl::GetRequestContextForExtensions() { 293 OffTheRecordProfileImpl::GetRequestContextForExtensions() {
284 return io_data_.GetExtensionsRequestContextGetter().get(); 294 return io_data_.GetExtensionsRequestContextGetter().get();
285 } 295 }
286 296
287 net::URLRequestContextGetter* 297 net::URLRequestContextGetter*
288 OffTheRecordProfileImpl::CreateRequestContextForStoragePartition( 298 OffTheRecordProfileImpl::CreateRequestContextForStoragePartition(
289 const base::FilePath& partition_path, 299 const base::FilePath& partition_path,
290 bool in_memory, 300 bool in_memory,
291 content::ProtocolHandlerMap* protocol_handlers) { 301 content::ProtocolHandlerMap* protocol_handlers) {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 case HostZoomMap::ZOOM_CHANGED_FOR_HOST: 468 case HostZoomMap::ZOOM_CHANGED_FOR_HOST:
459 host_zoom_map->SetZoomLevelForHost(change.host, change.zoom_level); 469 host_zoom_map->SetZoomLevelForHost(change.host, change.zoom_level);
460 return; 470 return;
461 case HostZoomMap::ZOOM_CHANGED_FOR_SCHEME_AND_HOST: 471 case HostZoomMap::ZOOM_CHANGED_FOR_SCHEME_AND_HOST:
462 host_zoom_map->SetZoomLevelForHostAndScheme(change.scheme, 472 host_zoom_map->SetZoomLevelForHostAndScheme(change.scheme,
463 change.host, 473 change.host,
464 change.zoom_level); 474 change.zoom_level);
465 return; 475 return;
466 } 476 }
467 } 477 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698