1 // Copyright (c) 2014 Intel Corporation. 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 XWALK_RUNTIME_BROWSER_NACL_HOST_NACL_BROWSER_DELEGATE_IMPL_H_
6 #define XWALK_RUNTIME_BROWSER_NACL_HOST_NACL_BROWSER_DELEGATE_IMPL_H_
10 #include "components/nacl/browser/nacl_browser_delegate.h"
12 class NaClBrowserDelegateImpl : public NaClBrowserDelegate {
14 NaClBrowserDelegateImpl();
15 virtual ~NaClBrowserDelegateImpl();
17 virtual void ShowMissingArchInfobar(int render_process_id,
18 int render_view_id) OVERRIDE;
19 virtual bool DialogsAreSuppressed() OVERRIDE;
20 virtual bool GetCacheDirectory(base::FilePath* cache_dir) OVERRIDE;
21 virtual bool GetPluginDirectory(base::FilePath* plugin_dir) OVERRIDE;
22 virtual bool GetPnaclDirectory(base::FilePath* pnacl_dir) OVERRIDE;
23 virtual bool GetUserDirectory(base::FilePath* user_dir) OVERRIDE;
24 virtual std::string GetVersionString() const OVERRIDE;
25 virtual ppapi::host::HostFactory* CreatePpapiHostFactory(
26 content::BrowserPpapiHost* ppapi_host) OVERRIDE;
27 virtual bool MapUrlToLocalFilePath(const GURL& url,
29 const base::FilePath& profile_directory,
30 base::FilePath* file_path) OVERRIDE;
31 virtual void SetDebugPatterns(std::string debug_patterns) OVERRIDE;
32 virtual bool IsNonSfiModeAllowed(const base::FilePath& profile_directory,
33 const GURL& manifest_url) OVERRIDE;
34 virtual bool URLMatchesDebugPatterns(const GURL& manifest_url) OVERRIDE;
35 virtual content::BrowserPpapiHost::OnKeepaliveCallback
36 GetOnKeepaliveCallback() OVERRIDE;
39 DISALLOW_COPY_AND_ASSIGN(NaClBrowserDelegateImpl);
42 #endif // XWALK_RUNTIME_BROWSER_NACL_HOST_NACL_BROWSER_DELEGATE_IMPL_H_