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

Unified Diff: chrome/browser/net/chrome_url_request_context.h

Issue 5430004: Refactored cookies persistent store clean-up on shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace fix. Created 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/chrome_url_request_context.h
diff --git a/chrome/browser/net/chrome_url_request_context.h b/chrome/browser/net/chrome_url_request_context.h
index e9faf59b3271d1db9e6afceaaa675740cce26f52..01b09f163cf23b0d4bcfdb03b24293d05011b56f 100644
--- a/chrome/browser/net/chrome_url_request_context.h
+++ b/chrome/browser/net/chrome_url_request_context.h
@@ -192,12 +192,19 @@ class ChromeURLRequestContext : public URLRequestContext {
network_delegate_ = network_delegate;
}
+ void set_clear_local_state_on_exit(bool clear_local_state) {
+ clear_local_state_on_exit_ = clear_local_state;
+ }
+
// Callback for when the accept language changes.
void OnAcceptLanguageChange(const std::string& accept_language);
// Callback for when the default charset changes.
void OnDefaultCharsetChange(const std::string& default_charset);
+ // Clears the persistent store if need.
jochen (gone - plz use gerrit) 2010/12/02 08:45:50 needed
pastarmovj 2010/12/02 14:54:36 Done.
+ void ClearLocalState();
+
protected:
// Path to the directory user scripts are stored in.
FilePath user_script_dir_path_;
@@ -213,6 +220,7 @@ class ChromeURLRequestContext : public URLRequestContext {
bool is_media_;
bool is_off_the_record_;
+ bool clear_local_state_on_exit_;
Randy Smith (Not in Mondays) 2010/12/01 20:39:50 It didn't look to me as if you were initializing t
pastarmovj 2010/12/02 14:54:36 Done.
private:
DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContext);
@@ -310,6 +318,7 @@ class ChromeURLRequestContextGetter : public URLRequestContextGetter,
// ChromeURLRequestContext.
void OnAcceptLanguageChange(const std::string& accept_language);
void OnDefaultCharsetChange(const std::string& default_charset);
+ void OnClearSiteDataOnExitChange(bool clear_site_data);
jochen (gone - plz use gerrit) 2010/12/02 08:45:50 why not ClearLocalState and clear_local_state?
pastarmovj 2010/12/02 14:54:36 To keep the naming convention of the other two fun
// Saves the cookie store to |result| and signals |completion|.
void GetCookieStoreAsyncHelper(base::WaitableEvent* completion,
@@ -362,6 +371,7 @@ class ChromeURLRequestContextFactory {
// ApplyProfileParametersToContext().
bool is_media_;
bool is_off_the_record_;
+ bool clear_local_state_on_exit_;
std::string accept_language_;
std::string accept_charset_;
std::string referrer_charset_;

Powered by Google App Engine
This is Rietveld 408576698