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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 #endif | 235 #endif |
236 | 236 |
237 #if defined(USE_X11) | 237 #if defined(USE_X11) |
238 #include "chrome/browser/chrome_browser_main_extra_parts_x11.h" | 238 #include "chrome/browser/chrome_browser_main_extra_parts_x11.h" |
239 #endif | 239 #endif |
240 | 240 |
241 #if defined(ENABLE_SPELLCHECK) | 241 #if defined(ENABLE_SPELLCHECK) |
242 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" | 242 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" |
243 #endif | 243 #endif |
244 | 244 |
245 | 245 #if defined(ENABLE_SERVICE_DISCOVERY) |
246 #if defined(ENABLE_MDNS) | |
247 #include "chrome/browser/local_discovery/storage/privet_filesystem_backend.h" | 246 #include "chrome/browser/local_discovery/storage/privet_filesystem_backend.h" |
248 #endif | 247 #endif |
249 | 248 |
250 using blink::WebWindowFeatures; | 249 using blink::WebWindowFeatures; |
251 using base::FileDescriptor; | 250 using base::FileDescriptor; |
252 using content::AccessTokenStore; | 251 using content::AccessTokenStore; |
253 using content::BrowserChildProcessHostIterator; | 252 using content::BrowserChildProcessHostIterator; |
254 using content::BrowserThread; | 253 using content::BrowserThread; |
255 using content::BrowserURLHandler; | 254 using content::BrowserURLHandler; |
256 using content::ChildProcessSecurityPolicy; | 255 using content::ChildProcessSecurityPolicy; |
(...skipping 2322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2579 fileapi::ExternalMountPoints::GetSystemInstance()); | 2578 fileapi::ExternalMountPoints::GetSystemInstance()); |
2580 backend->AddSystemMountPoints(); | 2579 backend->AddSystemMountPoints(); |
2581 DCHECK(backend->CanHandleType(fileapi::kFileSystemTypeExternal)); | 2580 DCHECK(backend->CanHandleType(fileapi::kFileSystemTypeExternal)); |
2582 additional_backends->push_back(backend); | 2581 additional_backends->push_back(backend); |
2583 #endif | 2582 #endif |
2584 | 2583 |
2585 additional_backends->push_back( | 2584 additional_backends->push_back( |
2586 new sync_file_system::SyncFileSystemBackend( | 2585 new sync_file_system::SyncFileSystemBackend( |
2587 Profile::FromBrowserContext(browser_context))); | 2586 Profile::FromBrowserContext(browser_context))); |
2588 | 2587 |
2589 #if defined(ENABLE_MDNS) | 2588 #if defined(ENABLE_SERVICE_DISCOVERY) |
2590 if (CommandLine::ForCurrentProcess()->HasSwitch( | 2589 if (CommandLine::ForCurrentProcess()->HasSwitch( |
2591 switches::kEnablePrivetStorage)) { | 2590 switches::kEnablePrivetStorage)) { |
2592 additional_backends->push_back( | 2591 additional_backends->push_back( |
2593 new local_discovery::PrivetFileSystemBackend( | 2592 new local_discovery::PrivetFileSystemBackend( |
2594 fileapi::ExternalMountPoints::GetSystemInstance(), | 2593 fileapi::ExternalMountPoints::GetSystemInstance(), |
2595 browser_context)); | 2594 browser_context)); |
2596 } | 2595 } |
2597 #endif | 2596 #endif |
2598 } | 2597 } |
2599 | 2598 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2742 switches::kDisableWebRtcEncryption, | 2741 switches::kDisableWebRtcEncryption, |
2743 }; | 2742 }; |
2744 to_command_line->CopySwitchesFrom(from_command_line, | 2743 to_command_line->CopySwitchesFrom(from_command_line, |
2745 kWebRtcDevSwitchNames, | 2744 kWebRtcDevSwitchNames, |
2746 arraysize(kWebRtcDevSwitchNames)); | 2745 arraysize(kWebRtcDevSwitchNames)); |
2747 } | 2746 } |
2748 } | 2747 } |
2749 #endif // defined(ENABLE_WEBRTC) | 2748 #endif // defined(ENABLE_WEBRTC) |
2750 | 2749 |
2751 } // namespace chrome | 2750 } // namespace chrome |
OLD | NEW |