Home | History | Annotate | Download | only in browser
      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 
      7 TestNaClBrowserDelegate::TestNaClBrowserDelegate() {}
      8 
      9 TestNaClBrowserDelegate::~TestNaClBrowserDelegate() {}
     10 
     11 void TestNaClBrowserDelegate::ShowMissingArchInfobar(int render_process_id,
     12                                                      int render_view_id) {}
     13 
     14 bool TestNaClBrowserDelegate::DialogsAreSuppressed() {
     15   return false;
     16 }
     17 
     18 bool TestNaClBrowserDelegate::GetCacheDirectory(base::FilePath* cache_dir) {
     19   return false;
     20 }
     21 
     22 bool TestNaClBrowserDelegate::GetPluginDirectory(base::FilePath* plugin_dir) {
     23   return false;
     24 }
     25 
     26 bool TestNaClBrowserDelegate::GetPnaclDirectory(base::FilePath* pnacl_dir) {
     27   return false;
     28 }
     29 
     30 bool TestNaClBrowserDelegate::GetUserDirectory(base::FilePath* user_dir) {
     31   return false;
     32 }
     33 
     34 std::string TestNaClBrowserDelegate::GetVersionString() const {
     35   return std::string();
     36 }
     37 
     38 ppapi::host::HostFactory* TestNaClBrowserDelegate::CreatePpapiHostFactory(
     39     content::BrowserPpapiHost* ppapi_host) {
     40   return NULL;
     41 }
     42 
     43 bool 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 
     51 void TestNaClBrowserDelegate::SetDebugPatterns(std::string debug_patterns) {}
     52 
     53 bool TestNaClBrowserDelegate::URLMatchesDebugPatterns(
     54     const GURL& manifest_url) {
     55   return false;
     56 }
     57 
     58 content::BrowserPpapiHost::OnKeepaliveCallback
     59 TestNaClBrowserDelegate::GetOnKeepaliveCallback() {
     60   return content::BrowserPpapiHost::OnKeepaliveCallback();
     61 }
     62 
     63 bool TestNaClBrowserDelegate::IsNonSfiModeAllowed(
     64     const base::FilePath& profile_directory,
     65     const GURL& manifest_url) {
     66   return false;
     67 }
     68