Support Promise<T> syntax in the IDL parser.
[chromium-blink-merge.git] / components / nacl / browser / test_nacl_browser_delegate.h
blob9aa57842649354ac99a120f707c58fe368cf64c7
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.
5 #ifndef COMPONENTS_NACL_BROWSER_TEST_NACL_BROWSER_DELEGATE_H_
6 #define COMPONENTS_NACL_BROWSER_TEST_NACL_BROWSER_DELEGATE_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "components/nacl/browser/nacl_browser_delegate.h"
12 // This is a base test implementation of NaClBrowserDelegate which
13 // does nothing. Individual tests can override the methods further.
14 // To use the test delegate:
16 // NaClBrowser::SetDelegate(new RefinedTestNaClBrowserDelegate);
18 // and
20 // NaClBrowser::SetDelegate(NULL); // frees the test delegate.
21 class TestNaClBrowserDelegate : public NaClBrowserDelegate {
22 public:
23 TestNaClBrowserDelegate();
24 virtual ~TestNaClBrowserDelegate();
25 virtual void ShowMissingArchInfobar(int render_process_id,
26 int render_view_id) override;
27 virtual bool DialogsAreSuppressed() override;
28 virtual bool GetCacheDirectory(base::FilePath* cache_dir) override;
29 virtual bool GetPluginDirectory(base::FilePath* plugin_dir) override;
30 virtual bool GetPnaclDirectory(base::FilePath* pnacl_dir) override;
31 virtual bool GetUserDirectory(base::FilePath* user_dir) override;
32 virtual std::string GetVersionString() const override;
33 virtual ppapi::host::HostFactory* CreatePpapiHostFactory(
34 content::BrowserPpapiHost* ppapi_host) override;
35 virtual bool MapUrlToLocalFilePath(const GURL& url,
36 bool use_blocking_api,
37 const base::FilePath& profile_directory,
38 base::FilePath* file_path) override;
39 virtual void SetDebugPatterns(std::string debug_patterns) override;
40 virtual bool URLMatchesDebugPatterns(const GURL& manifest_url) override;
41 virtual content::BrowserPpapiHost::OnKeepaliveCallback
42 GetOnKeepaliveCallback() override;
43 virtual bool IsNonSfiModeAllowed(const base::FilePath& profile_directory,
44 const GURL& manifest_url) override;
46 private:
47 DISALLOW_COPY_AND_ASSIGN(TestNaClBrowserDelegate);
50 #endif // COMPONENTS_NACL_BROWSER_TEST_NACL_BROWSER_DELEGATE_H_