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

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.h

Issue 8533013: SessionRestore: Store session cookies and restore them if chrome crashes or auto-restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 27 matching lines...) Expand all
38 void Init(const FilePath& cookie_path, 38 void Init(const FilePath& cookie_path,
39 const FilePath& origin_bound_cert_path, 39 const FilePath& origin_bound_cert_path,
40 const FilePath& cache_path, 40 const FilePath& cache_path,
41 int cache_max_size, 41 int cache_max_size,
42 const FilePath& media_cache_path, 42 const FilePath& media_cache_path,
43 int media_cache_max_size, 43 int media_cache_max_size,
44 const FilePath& extensions_cookie_path, 44 const FilePath& extensions_cookie_path,
45 const FilePath& app_path, 45 const FilePath& app_path,
46 chrome_browser_net::Predictor* predictor, 46 chrome_browser_net::Predictor* predictor,
47 PrefService* local_state, 47 PrefService* local_state,
48 IOThread* io_thread); 48 IOThread* io_thread,
49 bool restore_old_session_cookies);
49 50
50 base::Callback<ChromeURLDataManagerBackend*(void)> 51 base::Callback<ChromeURLDataManagerBackend*(void)>
51 GetChromeURLDataManagerBackendGetter() const; 52 GetChromeURLDataManagerBackendGetter() const;
52 const content::ResourceContext& GetResourceContext() const; 53 const content::ResourceContext& GetResourceContext() const;
53 scoped_refptr<ChromeURLRequestContextGetter> 54 scoped_refptr<ChromeURLRequestContextGetter>
54 GetMainRequestContextGetter() const; 55 GetMainRequestContextGetter() const;
55 scoped_refptr<ChromeURLRequestContextGetter> 56 scoped_refptr<ChromeURLRequestContextGetter>
56 GetMediaRequestContextGetter() const; 57 GetMediaRequestContextGetter() const;
57 scoped_refptr<ChromeURLRequestContextGetter> 58 scoped_refptr<ChromeURLRequestContextGetter>
58 GetExtensionsRequestContextGetter() const; 59 GetExtensionsRequestContextGetter() const;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 ~LazyParams(); 107 ~LazyParams();
107 108
108 // All of these parameters are intended to be read on the IO thread. 109 // All of these parameters are intended to be read on the IO thread.
109 FilePath cookie_path; 110 FilePath cookie_path;
110 FilePath origin_bound_cert_path; 111 FilePath origin_bound_cert_path;
111 FilePath cache_path; 112 FilePath cache_path;
112 int cache_max_size; 113 int cache_max_size;
113 FilePath media_cache_path; 114 FilePath media_cache_path;
114 int media_cache_max_size; 115 int media_cache_max_size;
115 FilePath extensions_cookie_path; 116 FilePath extensions_cookie_path;
117 bool restore_old_session_cookies;
116 }; 118 };
117 119
118 typedef base::hash_map<std::string, net::HttpTransactionFactory* > 120 typedef base::hash_map<std::string, net::HttpTransactionFactory* >
119 HttpTransactionFactoryMap; 121 HttpTransactionFactoryMap;
120 122
121 ProfileImplIOData(); 123 ProfileImplIOData();
122 virtual ~ProfileImplIOData(); 124 virtual ~ProfileImplIOData();
123 125
124 virtual void LazyInitializeInternal( 126 virtual void LazyInitializeInternal(
125 ProfileParams* profile_params) const OVERRIDE; 127 ProfileParams* profile_params) const OVERRIDE;
(...skipping 22 matching lines...) Expand all
148 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; 150 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_;
149 151
150 // Parameters needed for isolated apps. 152 // Parameters needed for isolated apps.
151 FilePath app_path_; 153 FilePath app_path_;
152 mutable bool clear_local_state_on_exit_; 154 mutable bool clear_local_state_on_exit_;
153 155
154 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 156 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
155 }; 157 };
156 158
157 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 159 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698