1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "components/nacl/browser/test_nacl_browser_delegate.h" 6 7TestNaClBrowserDelegate::TestNaClBrowserDelegate() {} 8 9TestNaClBrowserDelegate::~TestNaClBrowserDelegate() {} 10 11void TestNaClBrowserDelegate::ShowMissingArchInfobar(int render_process_id, 12 int render_view_id) {} 13 14bool TestNaClBrowserDelegate::DialogsAreSuppressed() { 15 return false; 16} 17 18bool TestNaClBrowserDelegate::GetCacheDirectory(base::FilePath* cache_dir) { 19 return false; 20} 21 22bool TestNaClBrowserDelegate::GetPluginDirectory(base::FilePath* plugin_dir) { 23 return false; 24} 25 26bool TestNaClBrowserDelegate::GetPnaclDirectory(base::FilePath* pnacl_dir) { 27 return false; 28} 29 30bool TestNaClBrowserDelegate::GetUserDirectory(base::FilePath* user_dir) { 31 return false; 32} 33 34std::string TestNaClBrowserDelegate::GetVersionString() const { 35 return std::string(); 36} 37 38ppapi::host::HostFactory* TestNaClBrowserDelegate::CreatePpapiHostFactory( 39 content::BrowserPpapiHost* ppapi_host) { 40 return NULL; 41} 42 43bool TestNaClBrowserDelegate::MapUrlToLocalFilePath( 44 const GURL& url, 45 bool use_blocking_api, 46 const base::FilePath& profile_directory, 47 base::FilePath* file_path) { 48 return false; 49} 50 51void TestNaClBrowserDelegate::SetDebugPatterns(std::string debug_patterns) {} 52 53bool TestNaClBrowserDelegate::URLMatchesDebugPatterns( 54 const GURL& manifest_url) { 55 return false; 56} 57 58content::BrowserPpapiHost::OnKeepaliveCallback 59TestNaClBrowserDelegate::GetOnKeepaliveCallback() { 60 return content::BrowserPpapiHost::OnKeepaliveCallback(); 61} 62 63bool TestNaClBrowserDelegate::IsNonSfiModeAllowed( 64 const base::FilePath& profile_directory, 65 const GURL& manifest_url) { 66 return false; 67} 68