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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 18667002: Pass BrowserContext to drive::MountPointProviderDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 // Returns an implementation of a file selecition policy. Can return NULL. 555 // Returns an implementation of a file selecition policy. Can return NULL.
556 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( 556 virtual ui::SelectFilePolicy* CreateSelectFilePolicy(
557 WebContents* web_contents); 557 WebContents* web_contents);
558 558
559 // Returns additional allowed scheme set which can access files in 559 // Returns additional allowed scheme set which can access files in
560 // FileSystem API. 560 // FileSystem API.
561 virtual void GetAdditionalAllowedSchemesForFileSystem( 561 virtual void GetAdditionalAllowedSchemesForFileSystem(
562 std::vector<std::string>* additional_schemes) {} 562 std::vector<std::string>* additional_schemes) {}
563 563
564 // Returns additional MountPointProviders for FileSystem API. 564 // Returns additional MountPointProviders for FileSystem API.
565 // |special_storage_policy| and |external_mount_points| are needed in the 565 // |browser_context| and |special_storage_policy| are needed in the
566 // additional MountPointProviders. |special_storage_policy| is used to grant 566 // additional MountPointProviders. |browser_context| has mount points to
567 // permissions. |external_mount_points| has mount points to create objects 567 // create objects returned by additional MountPointProviders.
568 // returned by additional MountPointProviders. (Note: although it is named 568 // |special_storage_policy| is used to grant permissions.
569 // "provider", it acts creating objects based on mount points provided by
570 // |external_mount_points|).
571 virtual void GetAdditionalFileSystemMountPointProviders( 569 virtual void GetAdditionalFileSystemMountPointProviders(
570 BrowserContext* browser_context,
572 const base::FilePath& storage_partition_path, 571 const base::FilePath& storage_partition_path,
573 quota::SpecialStoragePolicy* special_storage_policy, 572 quota::SpecialStoragePolicy* special_storage_policy,
574 fileapi::ExternalMountPoints* external_mount_points,
575 ScopedVector<fileapi::FileSystemMountPointProvider>* 573 ScopedVector<fileapi::FileSystemMountPointProvider>*
576 additional_providers) {} 574 additional_providers) {}
577 575
578 // Allows an embedder to return its own LocationProvider implementation. 576 // Allows an embedder to return its own LocationProvider implementation.
579 // Return NULL to use the default one for the platform to be created. 577 // Return NULL to use the default one for the platform to be created.
580 virtual LocationProvider* OverrideSystemLocationProvider(); 578 virtual LocationProvider* OverrideSystemLocationProvider();
581 579
582 #if defined(OS_POSIX) && !defined(OS_MACOSX) 580 #if defined(OS_POSIX) && !defined(OS_MACOSX)
583 // Populates |mappings| with all files that need to be mapped before launching 581 // Populates |mappings| with all files that need to be mapped before launching
584 // a child process. 582 // a child process.
585 virtual void GetAdditionalMappedFilesForChildProcess( 583 virtual void GetAdditionalMappedFilesForChildProcess(
586 const CommandLine& command_line, 584 const CommandLine& command_line,
(...skipping 17 matching lines...) Expand all
604 // This is called on a worker thread. 602 // This is called on a worker thread.
605 virtual 603 virtual
606 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 604 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
607 const GURL& url); 605 const GURL& url);
608 #endif 606 #endif
609 }; 607 };
610 608
611 } // namespace content 609 } // namespace content
612 610
613 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 611 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698