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