1 // Copyright 2013 The Chromium Authors 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 #include "base/functional/callback.h" 7 TestNaClBrowserDelegate()8TestNaClBrowserDelegate::TestNaClBrowserDelegate() {} 9 ~TestNaClBrowserDelegate()10TestNaClBrowserDelegate::~TestNaClBrowserDelegate() {} 11 ShowMissingArchInfobar(int render_process_id,int render_frame_id)12void TestNaClBrowserDelegate::ShowMissingArchInfobar(int render_process_id, 13 int render_frame_id) {} 14 DialogsAreSuppressed()15bool TestNaClBrowserDelegate::DialogsAreSuppressed() { 16 return false; 17 } 18 GetCacheDirectory(base::FilePath * cache_dir)19bool TestNaClBrowserDelegate::GetCacheDirectory(base::FilePath* cache_dir) { 20 return false; 21 } 22 GetPluginDirectory(base::FilePath * plugin_dir)23bool TestNaClBrowserDelegate::GetPluginDirectory(base::FilePath* plugin_dir) { 24 return false; 25 } 26 GetPnaclDirectory(base::FilePath * pnacl_dir)27bool TestNaClBrowserDelegate::GetPnaclDirectory(base::FilePath* pnacl_dir) { 28 return false; 29 } 30 GetUserDirectory(base::FilePath * user_dir)31bool TestNaClBrowserDelegate::GetUserDirectory(base::FilePath* user_dir) { 32 return false; 33 } 34 GetVersionString() const35std::string TestNaClBrowserDelegate::GetVersionString() const { 36 return std::string(); 37 } 38 CreatePpapiHostFactory(content::BrowserPpapiHost * ppapi_host)39ppapi::host::HostFactory* TestNaClBrowserDelegate::CreatePpapiHostFactory( 40 content::BrowserPpapiHost* ppapi_host) { 41 return NULL; 42 } 43 44 NaClBrowserDelegate::MapUrlToLocalFilePathCallback GetMapUrlToLocalFilePathCallback(const base::FilePath & profile_directory)45TestNaClBrowserDelegate::GetMapUrlToLocalFilePathCallback( 46 const base::FilePath& profile_directory) { 47 return base::BindRepeating([](const GURL& url, bool use_blocking_api, 48 base::FilePath* file_path) { return false; }); 49 } 50 SetDebugPatterns(const std::string & debug_patterns)51void TestNaClBrowserDelegate::SetDebugPatterns( 52 const std::string& debug_patterns) {} 53 URLMatchesDebugPatterns(const GURL & manifest_url)54bool TestNaClBrowserDelegate::URLMatchesDebugPatterns( 55 const GURL& manifest_url) { 56 return false; 57 } 58