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

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: Rebase 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
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | no next file » | 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 #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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 namespace ui { 65 namespace ui {
66 class SelectFilePolicy; 66 class SelectFilePolicy;
67 } 67 }
68 68
69 namespace fileapi { 69 namespace fileapi {
70 class ExternalMountPoints; 70 class ExternalMountPoints;
71 class FileSystemBackend; 71 class FileSystemBackend;
72 } 72 }
73 73
74 namespace quota {
75 class SpecialStoragePolicy;
76 }
77
78 namespace content { 74 namespace content {
79 75
80 class AccessTokenStore; 76 class AccessTokenStore;
81 class BrowserChildProcessHost; 77 class BrowserChildProcessHost;
82 class BrowserContext; 78 class BrowserContext;
83 class BrowserMainParts; 79 class BrowserMainParts;
84 class BrowserPluginGuestDelegate; 80 class BrowserPluginGuestDelegate;
85 class BrowserPpapiHost; 81 class BrowserPpapiHost;
86 class BrowserURLHandler; 82 class BrowserURLHandler;
87 class LocationProvider; 83 class LocationProvider;
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 // Returns an implementation of a file selecition policy. Can return NULL. 551 // Returns an implementation of a file selecition policy. Can return NULL.
556 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( 552 virtual ui::SelectFilePolicy* CreateSelectFilePolicy(
557 WebContents* web_contents); 553 WebContents* web_contents);
558 554
559 // Returns additional allowed scheme set which can access files in 555 // Returns additional allowed scheme set which can access files in
560 // FileSystem API. 556 // FileSystem API.
561 virtual void GetAdditionalAllowedSchemesForFileSystem( 557 virtual void GetAdditionalAllowedSchemesForFileSystem(
562 std::vector<std::string>* additional_schemes) {} 558 std::vector<std::string>* additional_schemes) {}
563 559
564 // Returns additional file system backends for FileSystem API. 560 // Returns additional file system backends for FileSystem API.
565 // |special_storage_policy| and |external_mount_points| are needed in the 561 // |browser_context| is needed in the additional FileSystemBackends.
566 // additional FileSystemBackends. |special_storage_policy| is used to grant 562 // It has mount points to create objects returned by additional
567 // permissions. |external_mount_points| has mount points to create objects 563 // FileSystemBackends, and SpecialStoragePolicy for permission granting.
568 // returned by additional FileSystemBackends.
569 virtual void GetAdditionalFileSystemBackends( 564 virtual void GetAdditionalFileSystemBackends(
565 BrowserContext* browser_context,
570 const base::FilePath& storage_partition_path, 566 const base::FilePath& storage_partition_path,
571 quota::SpecialStoragePolicy* special_storage_policy,
572 fileapi::ExternalMountPoints* external_mount_points,
573 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {} 567 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {}
574 568
575 // Allows an embedder to return its own LocationProvider implementation. 569 // Allows an embedder to return its own LocationProvider implementation.
576 // Return NULL to use the default one for the platform to be created. 570 // Return NULL to use the default one for the platform to be created.
577 virtual LocationProvider* OverrideSystemLocationProvider(); 571 virtual LocationProvider* OverrideSystemLocationProvider();
578 572
579 #if defined(OS_POSIX) && !defined(OS_MACOSX) 573 #if defined(OS_POSIX) && !defined(OS_MACOSX)
580 // Populates |mappings| with all files that need to be mapped before launching 574 // Populates |mappings| with all files that need to be mapped before launching
581 // a child process. 575 // a child process.
582 virtual void GetAdditionalMappedFilesForChildProcess( 576 virtual void GetAdditionalMappedFilesForChildProcess(
(...skipping 18 matching lines...) Expand all
601 // This is called on a worker thread. 595 // This is called on a worker thread.
602 virtual 596 virtual
603 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 597 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
604 const GURL& url); 598 const GURL& url);
605 #endif 599 #endif
606 }; 600 };
607 601
608 } // namespace content 602 } // namespace content
609 603
610 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 604 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698