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

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

Issue 2568033002: mediaview: Skeleton for ARC Documents Provider FS. (Closed)
Patch Set: IWYU and comments. Created 4 years 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 #if defined(OS_WIN) 208 #if defined(OS_WIN)
209 #include "base/strings/string_tokenizer.h" 209 #include "base/strings/string_tokenizer.h"
210 #include "chrome/browser/chrome_browser_main_win.h" 210 #include "chrome/browser/chrome_browser_main_win.h"
211 #include "sandbox/win/src/sandbox_policy.h" 211 #include "sandbox/win/src/sandbox_policy.h"
212 #elif defined(OS_MACOSX) 212 #elif defined(OS_MACOSX)
213 #include "chrome/browser/chrome_browser_main_mac.h" 213 #include "chrome/browser/chrome_browser_main_mac.h"
214 #elif defined(OS_CHROMEOS) 214 #elif defined(OS_CHROMEOS)
215 #include "chrome/browser/chromeos/arc/arc_session_manager.h" 215 #include "chrome/browser/chromeos/arc/arc_session_manager.h"
216 #include "chrome/browser/chromeos/arc/fileapi/arc_content_file_system_backend_de legate.h" 216 #include "chrome/browser/chromeos/arc/fileapi/arc_content_file_system_backend_de legate.h"
217 #include "chrome/browser/chromeos/arc/fileapi/arc_documents_provider_backend_del egate.h"
217 #include "chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h" 218 #include "chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h"
218 #include "chrome/browser/chromeos/attestation/platform_verification_impl.h" 219 #include "chrome/browser/chromeos/attestation/platform_verification_impl.h"
219 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" 220 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h"
220 #include "chrome/browser/chromeos/chrome_interface_factory.h" 221 #include "chrome/browser/chromeos/chrome_interface_factory.h"
221 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h" 222 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h"
222 #include "chrome/browser/chromeos/file_manager/app_id.h" 223 #include "chrome/browser/chromeos/file_manager/app_id.h"
223 #include "chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate. h" 224 #include "chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate. h"
224 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" 225 #include "chrome/browser/chromeos/fileapi/file_system_backend.h"
225 #include "chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h" 226 #include "chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h"
226 #include "chrome/browser/chromeos/login/signin/merge_session_navigation_throttle .h" 227 #include "chrome/browser/chromeos/login/signin/merge_session_navigation_throttle .h"
(...skipping 2573 matching lines...) Expand 10 before | Expand all | Expand 10 after
2800 #if defined(OS_CHROMEOS) 2801 #if defined(OS_CHROMEOS)
2801 storage::ExternalMountPoints* external_mount_points = 2802 storage::ExternalMountPoints* external_mount_points =
2802 content::BrowserContext::GetMountPoints(browser_context); 2803 content::BrowserContext::GetMountPoints(browser_context);
2803 DCHECK(external_mount_points); 2804 DCHECK(external_mount_points);
2804 chromeos::FileSystemBackend* backend = new chromeos::FileSystemBackend( 2805 chromeos::FileSystemBackend* backend = new chromeos::FileSystemBackend(
2805 base::MakeUnique<drive::FileSystemBackendDelegate>(), 2806 base::MakeUnique<drive::FileSystemBackendDelegate>(),
2806 base::MakeUnique<chromeos::file_system_provider::BackendDelegate>(), 2807 base::MakeUnique<chromeos::file_system_provider::BackendDelegate>(),
2807 base::MakeUnique<chromeos::MTPFileSystemBackendDelegate>( 2808 base::MakeUnique<chromeos::MTPFileSystemBackendDelegate>(
2808 storage_partition_path), 2809 storage_partition_path),
2809 base::MakeUnique<arc::ArcContentFileSystemBackendDelegate>(), 2810 base::MakeUnique<arc::ArcContentFileSystemBackendDelegate>(),
2811 base::MakeUnique<arc::ArcDocumentsProviderBackendDelegate>(),
2810 external_mount_points, storage::ExternalMountPoints::GetSystemInstance()); 2812 external_mount_points, storage::ExternalMountPoints::GetSystemInstance());
2811 backend->AddSystemMountPoints(); 2813 backend->AddSystemMountPoints();
2812 DCHECK(backend->CanHandleType(storage::kFileSystemTypeExternal)); 2814 DCHECK(backend->CanHandleType(storage::kFileSystemTypeExternal));
2813 additional_backends->push_back(backend); 2815 additional_backends->push_back(backend);
2814 #endif 2816 #endif
2815 2817
2816 for (size_t i = 0; i < extra_parts_.size(); ++i) { 2818 for (size_t i = 0; i < extra_parts_.size(); ++i) {
2817 extra_parts_[i]->GetAdditionalFileSystemBackends( 2819 extra_parts_[i]->GetAdditionalFileSystemBackends(
2818 browser_context, storage_partition_path, additional_backends); 2820 browser_context, storage_partition_path, additional_backends);
2819 } 2821 }
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
3341 GetBrowserSchedulerWorkerPoolParamsFromVariations(); 3343 GetBrowserSchedulerWorkerPoolParamsFromVariations();
3342 *index_to_traits_callback = base::Bind(&task_scheduler_util::initialization:: 3344 *index_to_traits_callback = base::Bind(&task_scheduler_util::initialization::
3343 BrowserWorkerPoolIndexForTraits); 3345 BrowserWorkerPoolIndexForTraits);
3344 } 3346 }
3345 3347
3346 void ChromeContentBrowserClient:: 3348 void ChromeContentBrowserClient::
3347 PerformExperimentalTaskSchedulerRedirections() { 3349 PerformExperimentalTaskSchedulerRedirections() {
3348 task_scheduler_util::variations:: 3350 task_scheduler_util::variations::
3349 MaybePerformBrowserTaskSchedulerRedirection(); 3351 MaybePerformBrowserTaskSchedulerRedirection();
3350 } 3352 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698