| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_NACL_HOST_NACL_BROWSER_DELEGATE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_NACL_HOST_NACL_BROWSER_DELEGATE_IMPL_H_ |
| 6 #define CHROME_BROWSER_NACL_HOST_NACL_BROWSER_DELEGATE_IMPL_H_ | 6 #define CHROME_BROWSER_NACL_HOST_NACL_BROWSER_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "components/nacl/common/nacl_browser_delegate.h" | 9 #include "components/nacl/common/nacl_browser_delegate.h" |
| 10 | 10 |
| 11 class NaClBrowserDelegateImpl : public NaClBrowserDelegate { | 11 class NaClBrowserDelegateImpl : public NaClBrowserDelegate { |
| 12 public: | 12 public: |
| 13 NaClBrowserDelegateImpl() {} | 13 NaClBrowserDelegateImpl() {} |
| 14 virtual ~NaClBrowserDelegateImpl() {} | 14 virtual ~NaClBrowserDelegateImpl() {} |
| 15 | 15 |
| 16 virtual void ShowNaClInfobar(int render_process_id, int render_view_id, | 16 virtual void ShowNaClInfobar(int render_process_id, int render_view_id, |
| 17 int error_id) OVERRIDE; | 17 int error_id) OVERRIDE; |
| 18 virtual bool DialogsAreSuppressed() OVERRIDE; | 18 virtual bool DialogsAreSuppressed() OVERRIDE; |
| 19 virtual bool GetCacheDirectory(base::FilePath* cache_dir) OVERRIDE; | 19 virtual bool GetCacheDirectory(base::FilePath* cache_dir) OVERRIDE; |
| 20 virtual bool GetPluginDirectory(base::FilePath* plugin_dir) OVERRIDE; | 20 virtual bool GetPluginDirectory(base::FilePath* plugin_dir) OVERRIDE; |
| 21 virtual bool GetPnaclDirectory(base::FilePath* pnacl_dir) OVERRIDE; | 21 virtual bool GetPnaclDirectory(base::FilePath* pnacl_dir) OVERRIDE; |
| 22 virtual bool GetUserDirectory(base::FilePath* user_dir) OVERRIDE; | 22 virtual bool GetUserDirectory(base::FilePath* user_dir) OVERRIDE; |
| 23 virtual std::string GetVersionString() const OVERRIDE; | 23 virtual std::string GetVersionString() const OVERRIDE; |
| 24 virtual ppapi::host::HostFactory* CreatePpapiHostFactory( | 24 virtual ppapi::host::HostFactory* CreatePpapiHostFactory( |
| 25 content::BrowserPpapiHost* ppapi_host) OVERRIDE; | 25 content::BrowserPpapiHost* ppapi_host) OVERRIDE; |
| 26 virtual void TryInstallPnacl( |
| 27 const base::Callback<void(bool)>& installed) OVERRIDE; |
| 26 }; | 28 }; |
| 27 | 29 |
| 28 | 30 |
| 29 #endif // CHROME_BROWSER_NACL_HOST_NACL_BROWSER_DELEGATE_IMPL_H_ | 31 #endif // CHROME_BROWSER_NACL_HOST_NACL_BROWSER_DELEGATE_IMPL_H_ |
| OLD | NEW |