| 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 <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 2198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2209 } | 2209 } |
| 2210 | 2210 |
| 2211 base::FilePath ChromeContentBrowserClient::GetDefaultDownloadDirectory() { | 2211 base::FilePath ChromeContentBrowserClient::GetDefaultDownloadDirectory() { |
| 2212 return DownloadPrefs::GetDefaultDownloadDirectory(); | 2212 return DownloadPrefs::GetDefaultDownloadDirectory(); |
| 2213 } | 2213 } |
| 2214 | 2214 |
| 2215 std::string ChromeContentBrowserClient::GetDefaultDownloadName() { | 2215 std::string ChromeContentBrowserClient::GetDefaultDownloadName() { |
| 2216 return l10n_util::GetStringUTF8(IDS_DEFAULT_DOWNLOAD_FILENAME); | 2216 return l10n_util::GetStringUTF8(IDS_DEFAULT_DOWNLOAD_FILENAME); |
| 2217 } | 2217 } |
| 2218 | 2218 |
| 2219 base::FilePath ChromeContentBrowserClient::GetUserDataDirectory() { |
| 2220 base::FilePath user_data_dir; |
| 2221 PathService::Get(DIR_USER_DATA, &user_data_dir); |
| 2222 DCHECK(!user_data_dir.empty()); |
| 2223 return user_data_dir; |
| 2224 } |
| 2225 |
| 2219 void ChromeContentBrowserClient::DidCreatePpapiPlugin( | 2226 void ChromeContentBrowserClient::DidCreatePpapiPlugin( |
| 2220 content::BrowserPpapiHost* browser_host) { | 2227 content::BrowserPpapiHost* browser_host) { |
| 2221 #if defined(ENABLE_PLUGINS) | 2228 #if defined(ENABLE_PLUGINS) |
| 2222 ChromeContentBrowserClientPluginsPart::DidCreatePpapiPlugin(browser_host); | 2229 ChromeContentBrowserClientPluginsPart::DidCreatePpapiPlugin(browser_host); |
| 2223 #endif | 2230 #endif |
| 2224 } | 2231 } |
| 2225 | 2232 |
| 2226 content::BrowserPpapiHost* | 2233 content::BrowserPpapiHost* |
| 2227 ChromeContentBrowserClient::GetExternalBrowserPpapiHost( | 2234 ChromeContentBrowserClient::GetExternalBrowserPpapiHost( |
| 2228 int plugin_process_id) { | 2235 int plugin_process_id) { |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2564 switches::kDisableWebRtcEncryption, | 2571 switches::kDisableWebRtcEncryption, |
| 2565 }; | 2572 }; |
| 2566 to_command_line->CopySwitchesFrom(from_command_line, | 2573 to_command_line->CopySwitchesFrom(from_command_line, |
| 2567 kWebRtcDevSwitchNames, | 2574 kWebRtcDevSwitchNames, |
| 2568 arraysize(kWebRtcDevSwitchNames)); | 2575 arraysize(kWebRtcDevSwitchNames)); |
| 2569 } | 2576 } |
| 2570 } | 2577 } |
| 2571 #endif // defined(ENABLE_WEBRTC) | 2578 #endif // defined(ENABLE_WEBRTC) |
| 2572 | 2579 |
| 2573 } // namespace chrome | 2580 } // namespace chrome |
| OLD | NEW |