| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "extensions/shell/browser/shell_nacl_browser_delegate.h" | 5 #include "extensions/shell/browser/shell_nacl_browser_delegate.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // A version change triggers an update of the NaCl validation caches. | 119 // A version change triggers an update of the NaCl validation caches. |
| 120 // Example version: "39.0.2129.0 (290550)". | 120 // Example version: "39.0.2129.0 (290550)". |
| 121 return PRODUCT_VERSION " (" LAST_CHANGE ")"; | 121 return PRODUCT_VERSION " (" LAST_CHANGE ")"; |
| 122 } | 122 } |
| 123 | 123 |
| 124 ppapi::host::HostFactory* ShellNaClBrowserDelegate::CreatePpapiHostFactory( | 124 ppapi::host::HostFactory* ShellNaClBrowserDelegate::CreatePpapiHostFactory( |
| 125 content::BrowserPpapiHost* ppapi_host) { | 125 content::BrowserPpapiHost* ppapi_host) { |
| 126 return NULL; | 126 return NULL; |
| 127 } | 127 } |
| 128 | 128 |
| 129 void ShellNaClBrowserDelegate::SetDebugPatterns(std::string debug_patterns) { | 129 void ShellNaClBrowserDelegate::SetDebugPatterns( |
| 130 const std::string& debug_patterns) { |
| 130 // No debugger support. Developers should use Chrome for debugging. | 131 // No debugger support. Developers should use Chrome for debugging. |
| 131 } | 132 } |
| 132 | 133 |
| 133 bool ShellNaClBrowserDelegate::URLMatchesDebugPatterns( | 134 bool ShellNaClBrowserDelegate::URLMatchesDebugPatterns( |
| 134 const GURL& manifest_url) { | 135 const GURL& manifest_url) { |
| 135 // No debugger support. Developers should use Chrome for debugging. | 136 // No debugger support. Developers should use Chrome for debugging. |
| 136 return false; | 137 return false; |
| 137 } | 138 } |
| 138 | 139 |
| 139 // This function is security sensitive. Be sure to check with a security | 140 // This function is security sensitive. Be sure to check with a security |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 return base::Bind(&OnKeepalive); | 187 return base::Bind(&OnKeepalive); |
| 187 } | 188 } |
| 188 | 189 |
| 189 bool ShellNaClBrowserDelegate::IsNonSfiModeAllowed( | 190 bool ShellNaClBrowserDelegate::IsNonSfiModeAllowed( |
| 190 const base::FilePath& profile_directory, | 191 const base::FilePath& profile_directory, |
| 191 const GURL& manifest_url) { | 192 const GURL& manifest_url) { |
| 192 return false; | 193 return false; |
| 193 } | 194 } |
| 194 | 195 |
| 195 } // namespace extensions | 196 } // namespace extensions |
| OLD | NEW |