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

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

Issue 195923002: Add mechanism to auto mount file systems in response to a URL request. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CrOS Created 6 years, 9 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 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after
2537 2537
2538 void ChromeContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( 2538 void ChromeContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem(
2539 std::vector<std::string>* additional_allowed_schemes) { 2539 std::vector<std::string>* additional_allowed_schemes) {
2540 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( 2540 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem(
2541 additional_allowed_schemes); 2541 additional_allowed_schemes);
2542 additional_allowed_schemes->push_back(content::kChromeDevToolsScheme); 2542 additional_allowed_schemes->push_back(content::kChromeDevToolsScheme);
2543 additional_allowed_schemes->push_back(content::kChromeUIScheme); 2543 additional_allowed_schemes->push_back(content::kChromeUIScheme);
2544 additional_allowed_schemes->push_back(extensions::kExtensionScheme); 2544 additional_allowed_schemes->push_back(extensions::kExtensionScheme);
2545 } 2545 }
2546 2546
2547 void ChromeContentBrowserClient::GetURLRequestAutoMountHandlers(
2548 std::vector<fileapi::URLRequestAutoMountHandler>* handlers) {
2549 }
2550
2547 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends( 2551 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends(
2548 content::BrowserContext* browser_context, 2552 content::BrowserContext* browser_context,
2549 const base::FilePath& storage_partition_path, 2553 const base::FilePath& storage_partition_path,
2550 ScopedVector<fileapi::FileSystemBackend>* additional_backends) { 2554 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {
2551 #if !defined(OS_ANDROID) 2555 #if !defined(OS_ANDROID)
2552 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool(); 2556 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool();
2553 additional_backends->push_back(new MediaFileSystemBackend( 2557 additional_backends->push_back(new MediaFileSystemBackend(
2554 storage_partition_path, 2558 storage_partition_path,
2555 pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken( 2559 pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken(
2556 MediaFileSystemBackend::kMediaTaskRunnerName)).get())); 2560 MediaFileSystemBackend::kMediaTaskRunnerName)).get()));
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
2731 switches::kDisableWebRtcEncryption, 2735 switches::kDisableWebRtcEncryption,
2732 }; 2736 };
2733 to_command_line->CopySwitchesFrom(from_command_line, 2737 to_command_line->CopySwitchesFrom(from_command_line,
2734 kWebRtcDevSwitchNames, 2738 kWebRtcDevSwitchNames,
2735 arraysize(kWebRtcDevSwitchNames)); 2739 arraysize(kWebRtcDevSwitchNames));
2736 } 2740 }
2737 } 2741 }
2738 #endif // defined(ENABLE_WEBRTC) 2742 #endif // defined(ENABLE_WEBRTC)
2739 2743
2740 } // namespace chrome 2744 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/chromeos/drive/file_system_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698