| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROME_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 int plugin_process_id) OVERRIDE; | 214 int plugin_process_id) OVERRIDE; |
| 215 virtual bool SupportsBrowserPlugin(content::BrowserContext* browser_context, | 215 virtual bool SupportsBrowserPlugin(content::BrowserContext* browser_context, |
| 216 const GURL& site_url) OVERRIDE; | 216 const GURL& site_url) OVERRIDE; |
| 217 virtual bool AllowPepperSocketAPI( | 217 virtual bool AllowPepperSocketAPI( |
| 218 content::BrowserContext* browser_context, | 218 content::BrowserContext* browser_context, |
| 219 const GURL& url, | 219 const GURL& url, |
| 220 const content::SocketPermissionRequest& params) OVERRIDE; | 220 const content::SocketPermissionRequest& params) OVERRIDE; |
| 221 virtual base::FilePath GetHyphenDictionaryDirectory() OVERRIDE; | 221 virtual base::FilePath GetHyphenDictionaryDirectory() OVERRIDE; |
| 222 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 222 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
| 223 content::WebContents* web_contents) OVERRIDE; | 223 content::WebContents* web_contents) OVERRIDE; |
| 224 virtual void GetAdditionalAllowedSchemesForFileSystem( |
| 225 std::vector<std::string>* additional_schemes) OVERRIDE; |
| 224 | 226 |
| 225 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 227 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 226 virtual void GetAdditionalMappedFilesForChildProcess( | 228 virtual void GetAdditionalMappedFilesForChildProcess( |
| 227 const CommandLine& command_line, | 229 const CommandLine& command_line, |
| 228 int child_process_id, | 230 int child_process_id, |
| 229 std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; | 231 std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; |
| 230 #endif | 232 #endif |
| 231 #if defined(OS_WIN) | 233 #if defined(OS_WIN) |
| 232 virtual const wchar_t* GetResourceDllName() OVERRIDE; | 234 virtual const wchar_t* GetResourceDllName() OVERRIDE; |
| 233 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 235 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
| 234 bool* success) OVERRIDE; | 236 bool* success) OVERRIDE; |
| 235 #endif | 237 #endif |
| 236 #if defined(USE_NSS) | 238 #if defined(USE_NSS) |
| 237 virtual | 239 virtual |
| 238 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 240 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 239 const GURL& url) OVERRIDE; | 241 const GURL& url) OVERRIDE; |
| 240 #endif | 242 #endif |
| 241 | 243 |
| 242 private: | 244 private: |
| 243 // Set of origins that can use TCP/UDP private APIs from NaCl. | 245 // Set of origins that can use TCP/UDP private APIs from NaCl. |
| 244 std::set<std::string> allowed_socket_origins_; | 246 std::set<std::string> allowed_socket_origins_; |
| 245 | 247 |
| 246 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 248 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 247 }; | 249 }; |
| 248 | 250 |
| 249 } // namespace chrome | 251 } // namespace chrome |
| 250 | 252 |
| 251 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 253 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |