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

Side by Side Diff: chrome/browser/profiles/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/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 } 855 }
856 856
857 net::URLRequestContextGetter* 857 net::URLRequestContextGetter*
858 ProfileImpl::GetMediaRequestContextForStoragePartition( 858 ProfileImpl::GetMediaRequestContextForStoragePartition(
859 const base::FilePath& partition_path, 859 const base::FilePath& partition_path,
860 bool in_memory) { 860 bool in_memory) {
861 return io_data_ 861 return io_data_
862 .GetIsolatedMediaRequestContextGetter(partition_path, in_memory).get(); 862 .GetIsolatedMediaRequestContextGetter(partition_path, in_memory).get();
863 } 863 }
864 864
865 void ProfileImpl::RequestMIDISysExPermission(
866 int render_process_id,
867 int render_view_id,
868 int client_id,
869 const GURL& requesting_frame,
870 const MIDISysExPermissionCallback& callback) {
871 // TODO(toyoshim): Implement.
872 callback.Run(render_process_id, render_view_id, client_id, false);
873 }
874
865 content::ResourceContext* ProfileImpl::GetResourceContext() { 875 content::ResourceContext* ProfileImpl::GetResourceContext() {
866 return io_data_.GetResourceContext(); 876 return io_data_.GetResourceContext();
867 } 877 }
868 878
869 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() { 879 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() {
870 return io_data_.GetExtensionsRequestContextGetter().get(); 880 return io_data_.GetExtensionsRequestContextGetter().get();
871 } 881 }
872 882
873 net::URLRequestContextGetter* 883 net::URLRequestContextGetter*
874 ProfileImpl::CreateRequestContextForStoragePartition( 884 ProfileImpl::CreateRequestContextForStoragePartition(
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 base::FilePath* cache_path, 1156 base::FilePath* cache_path,
1147 int* max_size) { 1157 int* max_size) {
1148 DCHECK(cache_path); 1158 DCHECK(cache_path);
1149 DCHECK(max_size); 1159 DCHECK(max_size);
1150 base::FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); 1160 base::FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir));
1151 if (!path.empty()) 1161 if (!path.empty())
1152 *cache_path = path; 1162 *cache_path = path;
1153 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1163 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1154 prefs_->GetInteger(prefs::kDiskCacheSize); 1164 prefs_->GetInteger(prefs::kDiskCacheSize);
1155 } 1165 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698