test_nacl_browser_delegate.cc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. #include "base/callback.h"
  5. #include "components/nacl/browser/test_nacl_browser_delegate.h"
  6. TestNaClBrowserDelegate::TestNaClBrowserDelegate() {}
  7. TestNaClBrowserDelegate::~TestNaClBrowserDelegate() {}
  8. void TestNaClBrowserDelegate::ShowMissingArchInfobar(int render_process_id,
  9. int render_frame_id) {}
  10. bool TestNaClBrowserDelegate::DialogsAreSuppressed() {
  11. return false;
  12. }
  13. bool TestNaClBrowserDelegate::GetCacheDirectory(base::FilePath* cache_dir) {
  14. return false;
  15. }
  16. bool TestNaClBrowserDelegate::GetPluginDirectory(base::FilePath* plugin_dir) {
  17. return false;
  18. }
  19. bool TestNaClBrowserDelegate::GetPnaclDirectory(base::FilePath* pnacl_dir) {
  20. return false;
  21. }
  22. bool TestNaClBrowserDelegate::GetUserDirectory(base::FilePath* user_dir) {
  23. return false;
  24. }
  25. std::string TestNaClBrowserDelegate::GetVersionString() const {
  26. return std::string();
  27. }
  28. ppapi::host::HostFactory* TestNaClBrowserDelegate::CreatePpapiHostFactory(
  29. content::BrowserPpapiHost* ppapi_host) {
  30. return NULL;
  31. }
  32. NaClBrowserDelegate::MapUrlToLocalFilePathCallback
  33. TestNaClBrowserDelegate::GetMapUrlToLocalFilePathCallback(
  34. const base::FilePath& profile_directory) {
  35. return base::BindRepeating([](const GURL& url, bool use_blocking_api,
  36. base::FilePath* file_path) { return false; });
  37. }
  38. void TestNaClBrowserDelegate::SetDebugPatterns(
  39. const std::string& debug_patterns) {}
  40. bool TestNaClBrowserDelegate::URLMatchesDebugPatterns(
  41. const GURL& manifest_url) {
  42. return false;
  43. }