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: content/public/browser/content_browser_client.h

Issue 11362268: Implement the ability to obliterate a storage partition from disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Work around race on extension uninstall Created 8 years, 1 month 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 <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // domain, partitions can be uniquely identified by the combination of 283 // domain, partitions can be uniquely identified by the combination of
284 // |partition_name| and |in_memory| values. When a partition is not to be 284 // |partition_name| and |in_memory| values. When a partition is not to be
285 // persisted, the |in_memory| value must be set to true. 285 // persisted, the |in_memory| value must be set to true.
286 virtual void GetStoragePartitionConfigForSite( 286 virtual void GetStoragePartitionConfigForSite(
287 content::BrowserContext* browser_context, 287 content::BrowserContext* browser_context,
288 const GURL& site, 288 const GURL& site,
289 std::string* partition_domain, 289 std::string* partition_domain,
290 std::string* partition_name, 290 std::string* partition_name,
291 bool* in_memory); 291 bool* in_memory);
292 292
293 // Similar to GetStoragePartitionConfigForSite(), but assumes it should
294 // parse |site| as if it were not in the default StoragePartition.
295 //
296 // If the embedder modifies the configuration of |site| so that it no
297 // longer has a non-default config there is a race where
298 // GetStoragePartitionConfigForSite() will no longer return the isolated
299 // configuration, but the embedder still needs to invoke cleanup code
300 // (such as data deleters) need to access the previous configuration.
Charlie Reis 2012/11/16 01:45:10 nit: that need
awong 2012/11/16 02:56:10 Function removed.
301 //
302 // This function is exposed for use by cleanup code. This is needed because
303 // |site| has insufficient information to know whether or not it was
304 // part of the default StoragePartition.
305 virtual void ParseNonDefaultStoragePartitionConfig(
Charlie Reis 2012/11/16 01:45:10 This is too complex to expose as its own function
awong 2012/11/16 02:56:10 Went with your solution.
306 const GURL& site,
307 std::string* partition_domain,
308 std::string* partition_name,
309 bool* in_memory);
310
293 // Create and return a new quota permission context. 311 // Create and return a new quota permission context.
294 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); 312 virtual QuotaPermissionContext* CreateQuotaPermissionContext();
295 313
296 // Open the given file in the desktop's default manner. 314 // Open the given file in the desktop's default manner.
297 virtual void OpenItem(const FilePath& path) {} 315 virtual void OpenItem(const FilePath& path) {}
298 316
299 // Show the given file in a file manager. If possible, select the file. 317 // Show the given file in a file manager. If possible, select the file.
300 virtual void ShowItemInFolder(const FilePath& path) {} 318 virtual void ShowItemInFolder(const FilePath& path) {}
301 319
302 // Informs the embedder that a certificate error has occured. If 320 // Informs the embedder that a certificate error has occured. If
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 // This is called on a worker thread. 494 // This is called on a worker thread.
477 virtual 495 virtual
478 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 496 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
479 const GURL& url); 497 const GURL& url);
480 #endif 498 #endif
481 }; 499 };
482 500
483 } // namespace content 501 } // namespace content
484 502
485 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 503 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698