blob: 7c079988430e53b7c0f61a5c0fbd6a2f4c8fb2d2 [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/callback.h"
#include "components/nacl/browser/test_nacl_browser_delegate.h"
TestNaClBrowserDelegate::TestNaClBrowserDelegate() {}
TestNaClBrowserDelegate::~TestNaClBrowserDelegate() {}
void TestNaClBrowserDelegate::ShowMissingArchInfobar(int render_process_id,
int render_view_id) {}
bool TestNaClBrowserDelegate::DialogsAreSuppressed() {
return false;
}
bool TestNaClBrowserDelegate::GetCacheDirectory(base::FilePath* cache_dir) {
return false;
}
bool TestNaClBrowserDelegate::GetPluginDirectory(base::FilePath* plugin_dir) {
return false;
}
bool TestNaClBrowserDelegate::GetPnaclDirectory(base::FilePath* pnacl_dir) {
return false;
}
bool TestNaClBrowserDelegate::GetUserDirectory(base::FilePath* user_dir) {
return false;
}
std::string TestNaClBrowserDelegate::GetVersionString() const {
return std::string();
}
ppapi::host::HostFactory* TestNaClBrowserDelegate::CreatePpapiHostFactory(
content::BrowserPpapiHost* ppapi_host) {
return NULL;
}
NaClBrowserDelegate::MapUrlToLocalFilePathCallback
TestNaClBrowserDelegate::GetMapUrlToLocalFilePathCallback(
const base::FilePath& profile_directory) {
return base::BindRepeating([](const GURL& url, bool use_blocking_api,
base::FilePath* file_path) { return false; });
}
void TestNaClBrowserDelegate::SetDebugPatterns(
const std::string& debug_patterns) {}
bool TestNaClBrowserDelegate::URLMatchesDebugPatterns(
const GURL& manifest_url) {
return false;
}
bool TestNaClBrowserDelegate::IsNonSfiModeAllowed(
const base::FilePath& profile_directory,
const GURL& manifest_url) {
return false;
}