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

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: 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 2532 matching lines...) Expand 10 before | Expand all | Expand 10 after
2543 2543
2544 void ChromeContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( 2544 void ChromeContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem(
2545 std::vector<std::string>* additional_allowed_schemes) { 2545 std::vector<std::string>* additional_allowed_schemes) {
2546 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( 2546 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem(
2547 additional_allowed_schemes); 2547 additional_allowed_schemes);
2548 additional_allowed_schemes->push_back(content::kChromeDevToolsScheme); 2548 additional_allowed_schemes->push_back(content::kChromeDevToolsScheme);
2549 additional_allowed_schemes->push_back(content::kChromeUIScheme); 2549 additional_allowed_schemes->push_back(content::kChromeUIScheme);
2550 additional_allowed_schemes->push_back(extensions::kExtensionScheme); 2550 additional_allowed_schemes->push_back(extensions::kExtensionScheme);
2551 } 2551 }
2552 2552
2553 void ChromeContentBrowserClient::GetURLRequestAutoMountHandlers(
2554 std::vector<fileapi::URLRequestAutoMountHandler>* handlers) {
2555 }
vandebo (ex-Chrome) 2014/03/11 23:50:49 Media galleries hook will go here.
2556
2553 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends( 2557 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends(
2554 content::BrowserContext* browser_context, 2558 content::BrowserContext* browser_context,
2555 const base::FilePath& storage_partition_path, 2559 const base::FilePath& storage_partition_path,
2556 ScopedVector<fileapi::FileSystemBackend>* additional_backends) { 2560 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {
2557 #if !defined(OS_ANDROID) 2561 #if !defined(OS_ANDROID)
2558 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool(); 2562 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool();
2559 additional_backends->push_back(new MediaFileSystemBackend( 2563 additional_backends->push_back(new MediaFileSystemBackend(
2560 storage_partition_path, 2564 storage_partition_path,
2561 pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken( 2565 pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken(
2562 MediaFileSystemBackend::kMediaTaskRunnerName)).get())); 2566 MediaFileSystemBackend::kMediaTaskRunnerName)).get()));
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
2737 switches::kDisableWebRtcEncryption, 2741 switches::kDisableWebRtcEncryption,
2738 }; 2742 };
2739 to_command_line->CopySwitchesFrom(from_command_line, 2743 to_command_line->CopySwitchesFrom(from_command_line,
2740 kWebRtcDevSwitchNames, 2744 kWebRtcDevSwitchNames,
2741 arraysize(kWebRtcDevSwitchNames)); 2745 arraysize(kWebRtcDevSwitchNames));
2742 } 2746 }
2743 } 2747 }
2744 #endif // defined(ENABLE_WEBRTC) 2748 #endif // defined(ENABLE_WEBRTC)
2745 2749
2746 } // namespace chrome 2750 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/media_galleries/fileapi/media_file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698