Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after
2347 additional_allowed_schemes); 2347 additional_allowed_schemes);
2348 additional_allowed_schemes->push_back(content::kChromeDevToolsScheme); 2348 additional_allowed_schemes->push_back(content::kChromeDevToolsScheme);
2349 additional_allowed_schemes->push_back(content::kChromeUIScheme); 2349 additional_allowed_schemes->push_back(content::kChromeUIScheme);
2350 for (size_t i = 0; i < extra_parts_.size(); ++i) { 2350 for (size_t i = 0; i < extra_parts_.size(); ++i) {
2351 extra_parts_[i]->GetAdditionalAllowedSchemesForFileSystem( 2351 extra_parts_[i]->GetAdditionalAllowedSchemesForFileSystem(
2352 additional_allowed_schemes); 2352 additional_allowed_schemes);
2353 } 2353 }
2354 } 2354 }
2355 2355
2356 void ChromeContentBrowserClient::GetURLRequestAutoMountHandlers( 2356 void ChromeContentBrowserClient::GetURLRequestAutoMountHandlers(
2357 std::vector<fileapi::URLRequestAutoMountHandler>* handlers) { 2357 std::vector<storage::URLRequestAutoMountHandler>* handlers) {
2358 for (size_t i = 0; i < extra_parts_.size(); ++i) 2358 for (size_t i = 0; i < extra_parts_.size(); ++i)
2359 extra_parts_[i]->GetURLRequestAutoMountHandlers(handlers); 2359 extra_parts_[i]->GetURLRequestAutoMountHandlers(handlers);
2360 } 2360 }
2361 2361
2362 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends( 2362 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends(
2363 content::BrowserContext* browser_context, 2363 content::BrowserContext* browser_context,
2364 const base::FilePath& storage_partition_path, 2364 const base::FilePath& storage_partition_path,
2365 ScopedVector<fileapi::FileSystemBackend>* additional_backends) { 2365 ScopedVector<storage::FileSystemBackend>* additional_backends) {
2366 #if defined(OS_CHROMEOS) 2366 #if defined(OS_CHROMEOS)
2367 fileapi::ExternalMountPoints* external_mount_points = 2367 storage::ExternalMountPoints* external_mount_points =
2368 content::BrowserContext::GetMountPoints(browser_context); 2368 content::BrowserContext::GetMountPoints(browser_context);
2369 DCHECK(external_mount_points); 2369 DCHECK(external_mount_points);
2370 chromeos::FileSystemBackend* backend = new chromeos::FileSystemBackend( 2370 chromeos::FileSystemBackend* backend = new chromeos::FileSystemBackend(
2371 new drive::FileSystemBackendDelegate, 2371 new drive::FileSystemBackendDelegate,
2372 new chromeos::file_system_provider::BackendDelegate, 2372 new chromeos::file_system_provider::BackendDelegate,
2373 new chromeos::MTPFileSystemBackendDelegate(storage_partition_path), 2373 new chromeos::MTPFileSystemBackendDelegate(storage_partition_path),
2374 browser_context->GetSpecialStoragePolicy(), 2374 browser_context->GetSpecialStoragePolicy(),
2375 external_mount_points, 2375 external_mount_points,
2376 fileapi::ExternalMountPoints::GetSystemInstance()); 2376 storage::ExternalMountPoints::GetSystemInstance());
2377 backend->AddSystemMountPoints(); 2377 backend->AddSystemMountPoints();
2378 DCHECK(backend->CanHandleType(fileapi::kFileSystemTypeExternal)); 2378 DCHECK(backend->CanHandleType(storage::kFileSystemTypeExternal));
2379 additional_backends->push_back(backend); 2379 additional_backends->push_back(backend);
2380 #endif 2380 #endif
2381 2381
2382 #if defined(ENABLE_SERVICE_DISCOVERY) 2382 #if defined(ENABLE_SERVICE_DISCOVERY)
2383 if (CommandLine::ForCurrentProcess()->HasSwitch( 2383 if (CommandLine::ForCurrentProcess()->HasSwitch(
2384 switches::kEnablePrivetStorage)) { 2384 switches::kEnablePrivetStorage)) {
2385 additional_backends->push_back( 2385 additional_backends->push_back(new local_discovery::PrivetFileSystemBackend(
2386 new local_discovery::PrivetFileSystemBackend( 2386 storage::ExternalMountPoints::GetSystemInstance(), browser_context));
2387 fileapi::ExternalMountPoints::GetSystemInstance(),
2388 browser_context));
2389 } 2387 }
2390 #endif 2388 #endif
2391 2389
2392 for (size_t i = 0; i < extra_parts_.size(); ++i) { 2390 for (size_t i = 0; i < extra_parts_.size(); ++i) {
2393 extra_parts_[i]->GetAdditionalFileSystemBackends( 2391 extra_parts_[i]->GetAdditionalFileSystemBackends(
2394 browser_context, storage_partition_path, additional_backends); 2392 browser_context, storage_partition_path, additional_backends);
2395 } 2393 }
2396 } 2394 }
2397 2395
2398 #if defined(OS_POSIX) && !defined(OS_MACOSX) 2396 #if defined(OS_POSIX) && !defined(OS_MACOSX)
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2587 switches::kDisableWebRtcEncryption, 2585 switches::kDisableWebRtcEncryption,
2588 }; 2586 };
2589 to_command_line->CopySwitchesFrom(from_command_line, 2587 to_command_line->CopySwitchesFrom(from_command_line,
2590 kWebRtcDevSwitchNames, 2588 kWebRtcDevSwitchNames,
2591 arraysize(kWebRtcDevSwitchNames)); 2589 arraysize(kWebRtcDevSwitchNames));
2592 } 2590 }
2593 } 2591 }
2594 #endif // defined(ENABLE_WEBRTC) 2592 #endif // defined(ENABLE_WEBRTC)
2595 2593
2596 } // namespace chrome 2594 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/chrome_content_browser_client_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698