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/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } | 110 } |
111 | 111 |
112 std::string ShellNaClBrowserDelegate::GetVersionString() const { | 112 std::string ShellNaClBrowserDelegate::GetVersionString() const { |
113 // A version change triggers an update of the NaCl validation caches. | 113 // A version change triggers an update of the NaCl validation caches. |
114 // Example version: "39.0.2129.0 (290550)". | 114 // Example version: "39.0.2129.0 (290550)". |
115 return PRODUCT_VERSION " (" LAST_CHANGE ")"; | 115 return PRODUCT_VERSION " (" LAST_CHANGE ")"; |
116 } | 116 } |
117 | 117 |
118 ppapi::host::HostFactory* ShellNaClBrowserDelegate::CreatePpapiHostFactory( | 118 ppapi::host::HostFactory* ShellNaClBrowserDelegate::CreatePpapiHostFactory( |
119 content::BrowserPpapiHost* ppapi_host) { | 119 content::BrowserPpapiHost* ppapi_host) { |
120 return NULL; | 120 return nullptr; |
121 } | 121 } |
122 | 122 |
123 void ShellNaClBrowserDelegate::SetDebugPatterns(std::string debug_patterns) { | 123 void ShellNaClBrowserDelegate::SetDebugPatterns(std::string debug_patterns) { |
124 // No debugger support. Developers should use Chrome for debugging. | 124 // No debugger support. Developers should use Chrome for debugging. |
125 } | 125 } |
126 | 126 |
127 bool ShellNaClBrowserDelegate::URLMatchesDebugPatterns( | 127 bool ShellNaClBrowserDelegate::URLMatchesDebugPatterns( |
128 const GURL& manifest_url) { | 128 const GURL& manifest_url) { |
129 // No debugger support. Developers should use Chrome for debugging. | 129 // No debugger support. Developers should use Chrome for debugging. |
130 return false; | 130 return false; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 return base::Bind(&OnKeepalive); | 180 return base::Bind(&OnKeepalive); |
181 } | 181 } |
182 | 182 |
183 bool ShellNaClBrowserDelegate::IsNonSfiModeAllowed( | 183 bool ShellNaClBrowserDelegate::IsNonSfiModeAllowed( |
184 const base::FilePath& profile_directory, | 184 const base::FilePath& profile_directory, |
185 const GURL& manifest_url) { | 185 const GURL& manifest_url) { |
186 return false; | 186 return false; |
187 } | 187 } |
188 | 188 |
189 } // namespace extensions | 189 } // namespace extensions |
OLD | NEW |