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

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

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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_STORAGE_PARTITION_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ 6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 kLocalDomStorage = 1 << 3, 69 kLocalDomStorage = 1 << 3,
70 kSessionDomStorage = 1 << 4, 70 kSessionDomStorage = 1 << 4,
71 71
72 kAllStorage = -1, 72 kAllStorage = -1,
73 }; 73 };
74 74
75 // Starts an asynchronous task that does a best-effort clear the data 75 // Starts an asynchronous task that does a best-effort clear the data
76 // corresonding to the given |storage_mask| inside this StoragePartition for 76 // corresonding to the given |storage_mask| inside this StoragePartition for
77 // the given |storage_origin|. Note kSessionDomStorage is not cleared and the 77 // the given |storage_origin|. Note kSessionDomStorage is not cleared and the
78 // mask is ignored. 78 // mask is ignored.
79 //
80 // TODO(ajwong): Right now, the embedder may have some
81 // URLRequestContextGetter objects that the StoragePartition does not know
82 // about. This will no longer be the case when we resolve
83 // http://crbug.com/159193. Remove |request_context_getter| when that bug
84 // is fixed.
85 virtual void AsyncClearDataForOrigin( 79 virtual void AsyncClearDataForOrigin(
86 uint32 storage_mask, 80 uint32 storage_mask,
87 const GURL& storage_origin, 81 const GURL& storage_origin) = 0;
88 net::URLRequestContextGetter* request_context_getter) = 0;
89 82
90 // Similar to AsyncClearDataForOrigin(), but deletes all data out of the 83 // Similar to AsyncClearDataForOrigin(), but deletes all data out of the
91 // StoragePartition rather than just the data related to this origin. 84 // StoragePartition rather than just the data related to this origin.
92 virtual void AsyncClearData(uint32 storage_mask) = 0; 85 virtual void AsyncClearData(uint32 storage_mask) = 0;
93 86
94 protected: 87 protected:
95 virtual ~StoragePartition() {} 88 virtual ~StoragePartition() {}
96 }; 89 };
97 90
98 } // namespace content 91 } // namespace content
99 92
100 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ 93 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
OLDNEW
« chrome/browser/profiles/profile_io_data.h ('K') | « content/public/browser/content_browser_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698