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

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

Issue 7966005: Move TransportSecurityPersister completely to IO thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 9 years, 3 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) 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 scoped_refptr<ChromeURLRequestContextGetter> 51 scoped_refptr<ChromeURLRequestContextGetter>
52 GetMainRequestContextGetter() const; 52 GetMainRequestContextGetter() const;
53 scoped_refptr<ChromeURLRequestContextGetter> 53 scoped_refptr<ChromeURLRequestContextGetter>
54 GetMediaRequestContextGetter() const; 54 GetMediaRequestContextGetter() const;
55 scoped_refptr<ChromeURLRequestContextGetter> 55 scoped_refptr<ChromeURLRequestContextGetter>
56 GetExtensionsRequestContextGetter() const; 56 GetExtensionsRequestContextGetter() const;
57 scoped_refptr<ChromeURLRequestContextGetter> 57 scoped_refptr<ChromeURLRequestContextGetter>
58 GetIsolatedAppRequestContextGetter( 58 GetIsolatedAppRequestContextGetter(
59 const std::string& app_id) const; 59 const std::string& app_id) const;
60 60
61 void DeleteTransportSecurityStateSince(base::Time time);
62
61 private: 63 private:
62 typedef base::hash_map<std::string, 64 typedef base::hash_map<std::string,
63 scoped_refptr<ChromeURLRequestContextGetter> > 65 scoped_refptr<ChromeURLRequestContextGetter> >
64 ChromeURLRequestContextGetterMap; 66 ChromeURLRequestContextGetterMap;
65 67
66 // Lazily initialize ProfileParams. We do this on the calls to 68 // Lazily initialize ProfileParams. We do this on the calls to
67 // Get*RequestContextGetter(), so we only initialize ProfileParams right 69 // Get*RequestContextGetter(), so we only initialize ProfileParams right
68 // before posting a task to the IO thread to start using them. This prevents 70 // before posting a task to the IO thread to start using them. This prevents
69 // objects that are supposed to be deleted on the IO thread, but are created 71 // objects that are supposed to be deleted on the IO thread, but are created
70 // on the UI thread from being unnecessarily initialized. 72 // on the UI thread from being unnecessarily initialized.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; 139 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_;
138 140
139 // Parameters needed for isolated apps. 141 // Parameters needed for isolated apps.
140 FilePath app_path_; 142 FilePath app_path_;
141 mutable bool clear_local_state_on_exit_; 143 mutable bool clear_local_state_on_exit_;
142 144
143 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 145 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
144 }; 146 };
145 147
146 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 148 #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