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 #include "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1817 | 1817 |
1818 extensions::SocketPermission::CheckParam extension_params( | 1818 extensions::SocketPermission::CheckParam extension_params( |
1819 params.type, params.host, params.port); | 1819 params.type, params.host, params.port); |
1820 if (extension->CheckAPIPermissionWithParam(APIPermission::kSocket, | 1820 if (extension->CheckAPIPermissionWithParam(APIPermission::kSocket, |
1821 &extension_params)) | 1821 &extension_params)) |
1822 return true; | 1822 return true; |
1823 | 1823 |
1824 return false; | 1824 return false; |
1825 } | 1825 } |
1826 | 1826 |
| 1827 bool ChromeContentBrowserClient::AllowPepperPrivateFileAPI() { |
| 1828 return CommandLine::ForCurrentProcess()->HasSwitch( |
| 1829 switches::kPpapiFlashInProcess); |
| 1830 } |
| 1831 |
1827 FilePath ChromeContentBrowserClient::GetHyphenDictionaryDirectory() { | 1832 FilePath ChromeContentBrowserClient::GetHyphenDictionaryDirectory() { |
1828 FilePath directory; | 1833 FilePath directory; |
1829 PathService::Get(chrome::DIR_APP_DICTIONARIES, &directory); | 1834 PathService::Get(chrome::DIR_APP_DICTIONARIES, &directory); |
1830 return directory.Append(FILE_PATH_LITERAL("Hyphen")); | 1835 return directory.Append(FILE_PATH_LITERAL("Hyphen")); |
1831 } | 1836 } |
1832 | 1837 |
1833 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 1838 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
1834 void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess( | 1839 void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess( |
1835 const CommandLine& command_line, | 1840 const CommandLine& command_line, |
1836 int child_process_id, | 1841 int child_process_id, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1926 io_thread_application_locale_ = locale; | 1931 io_thread_application_locale_ = locale; |
1927 } | 1932 } |
1928 | 1933 |
1929 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( | 1934 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( |
1930 const std::string& locale) { | 1935 const std::string& locale) { |
1931 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 1936 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
1932 io_thread_application_locale_ = locale; | 1937 io_thread_application_locale_ = locale; |
1933 } | 1938 } |
1934 | 1939 |
1935 } // namespace chrome | 1940 } // namespace chrome |
OLD | NEW |