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