Upstream version 8.37.180.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / browser / nacl_host / nacl_browser_delegate_impl.h
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.
4
5 #ifndef XWALK_RUNTIME_BROWSER_NACL_HOST_NACL_BROWSER_DELEGATE_IMPL_H_
6 #define XWALK_RUNTIME_BROWSER_NACL_HOST_NACL_BROWSER_DELEGATE_IMPL_H_
7
8 #include <string>
9
10 #include "components/nacl/browser/nacl_browser_delegate.h"
11
12 class NaClBrowserDelegateImpl : public NaClBrowserDelegate {
13  public:
14   NaClBrowserDelegateImpl();
15   virtual ~NaClBrowserDelegateImpl();
16
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,
28                                      bool is_blocking,
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;
37
38  private:
39   DISALLOW_COPY_AND_ASSIGN(NaClBrowserDelegateImpl);
40 };
41
42 #endif  // XWALK_RUNTIME_BROWSER_NACL_HOST_NACL_BROWSER_DELEGATE_IMPL_H_