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

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

Issue 11280030: Implement the ability to obliterate a storage partition from disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 // Allows the embedder to provide a validation check for |partition_id|s. 272 // Allows the embedder to provide a validation check for |partition_id|s.
273 // This domain of valid entries should match the range of outputs for 273 // This domain of valid entries should match the range of outputs for
274 // GetStoragePartitionIdForChildProcess(). 274 // GetStoragePartitionIdForChildProcess().
275 virtual bool IsValidStoragePartitionId(BrowserContext* browser_context, 275 virtual bool IsValidStoragePartitionId(BrowserContext* browser_context,
276 const std::string& partition_id); 276 const std::string& partition_id);
277 277
278 // Allows the embedder to provide a storage parititon configuration for a 278 // Allows the embedder to provide a storage parititon configuration for a
279 // site. A storage partition configuration includes a domain of the embedder's 279 // site. A storage partition configuration includes a domain of the embedder's
280 // choice, an optional name within that domain, and whether the partition is 280 // choice, an optional name within that domain, and whether the partition is
281 // in-memory only. The |partition_domain| is [a-z]* UTF-8 string, specifying 281 // in-memory only.
282 // the domain in which partitions live (similar to namespace). Within a 282 //
283 // domain, partitions can be uniquely identified by the combination of 283 // If |can_be_default| is false, the caller is telling the embedder that the
284 // |partition_name| and |in_memory| values. When a partition is not to be 284 // |site| is known to not be in the default partition. This is useful in
285 // persisted, the |in_memory| value must be set to true. 285 // some shutdown situations where the bookkeeping logic that maps sites to
286 // their partition configuration are no longer valid.
287 //
288 // The |partition_domain| is [a-z]* UTF-8 string, specifying the domain in
289 // which partitions live (similar to namespace). Within a domain, partitions
290 // can be uniquely identified by the combination of |partition_name| and
291 // |in_memory| values. When a partition is not to be persisted, the
292 // |in_memory| value must be set to true.
286 virtual void GetStoragePartitionConfigForSite( 293 virtual void GetStoragePartitionConfigForSite(
287 content::BrowserContext* browser_context, 294 content::BrowserContext* browser_context,
288 const GURL& site, 295 const GURL& site,
296 bool can_be_default,
289 std::string* partition_domain, 297 std::string* partition_domain,
290 std::string* partition_name, 298 std::string* partition_name,
291 bool* in_memory); 299 bool* in_memory);
292 300
293 // Create and return a new quota permission context. 301 // Create and return a new quota permission context.
294 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); 302 virtual QuotaPermissionContext* CreateQuotaPermissionContext();
295 303
296 // Open the given file in the desktop's default manner. 304 // Open the given file in the desktop's default manner.
297 virtual void OpenItem(const FilePath& path) {} 305 virtual void OpenItem(const FilePath& path) {}
298 306
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 // This is called on a worker thread. 484 // This is called on a worker thread.
477 virtual 485 virtual
478 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 486 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
479 const GURL& url); 487 const GURL& url);
480 #endif 488 #endif
481 }; 489 };
482 490
483 } // namespace content 491 } // namespace content
484 492
485 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 493 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698