| 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 COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_ | 5 #ifndef COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_ |
| 6 #define COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_ | 6 #define COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual bool GetUserDirectory(base::FilePath* user_dir) = 0; | 51 virtual bool GetUserDirectory(base::FilePath* user_dir) = 0; |
| 52 // Returns the version as a string. This string is used to invalidate | 52 // Returns the version as a string. This string is used to invalidate |
| 53 // validator cache entries when Chromium is upgraded | 53 // validator cache entries when Chromium is upgraded |
| 54 virtual std::string GetVersionString() const = 0; | 54 virtual std::string GetVersionString() const = 0; |
| 55 // Returns a HostFactory that hides the details of its embedder. | 55 // Returns a HostFactory that hides the details of its embedder. |
| 56 virtual ppapi::host::HostFactory* CreatePpapiHostFactory( | 56 virtual ppapi::host::HostFactory* CreatePpapiHostFactory( |
| 57 content::BrowserPpapiHost* ppapi_host) = 0; | 57 content::BrowserPpapiHost* ppapi_host) = 0; |
| 58 // Install PNaCl if this operation is supported. On success, the |installed| | 58 // Install PNaCl if this operation is supported. On success, the |installed| |
| 59 // callback should be called with true, and on failure (or not supported), | 59 // callback should be called with true, and on failure (or not supported), |
| 60 // the |installed| callback should be called with false. | 60 // the |installed| callback should be called with false. |
| 61 // TODO(jvoung): Add the progress callback as well. |
| 61 virtual void TryInstallPnacl( | 62 virtual void TryInstallPnacl( |
| 62 const base::Callback<void(bool)>& installed) = 0; | 63 const base::Callback<void(bool)>& installed) = 0; |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 #endif // COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_ | 66 #endif // COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_ |
| OLD | NEW |