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

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

Issue 7467012: Modifying prefetch to account for multi-profile. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 scoped_refptr<ChromeURLRequestContextGetter> 43 scoped_refptr<ChromeURLRequestContextGetter>
44 GetMainRequestContextGetter() const; 44 GetMainRequestContextGetter() const;
45 scoped_refptr<ChromeURLRequestContextGetter> 45 scoped_refptr<ChromeURLRequestContextGetter>
46 GetMediaRequestContextGetter() const; 46 GetMediaRequestContextGetter() const;
47 scoped_refptr<ChromeURLRequestContextGetter> 47 scoped_refptr<ChromeURLRequestContextGetter>
48 GetExtensionsRequestContextGetter() const; 48 GetExtensionsRequestContextGetter() const;
49 scoped_refptr<ChromeURLRequestContextGetter> 49 scoped_refptr<ChromeURLRequestContextGetter>
50 GetIsolatedAppRequestContextGetter( 50 GetIsolatedAppRequestContextGetter(
51 const std::string& app_id) const; 51 const std::string& app_id) const;
52 52
53 chrome_browser_net::Predictor* GetPredictor();
54 void SetPredictor(chrome_browser_net::Predictor* predictor);
55
53 private: 56 private:
54 typedef base::hash_map<std::string, 57 typedef base::hash_map<std::string,
55 scoped_refptr<ChromeURLRequestContextGetter> > 58 scoped_refptr<ChromeURLRequestContextGetter> >
56 ChromeURLRequestContextGetterMap; 59 ChromeURLRequestContextGetterMap;
57 60
58 // Lazily initialize ProfileParams. We do this on the calls to 61 // Lazily initialize ProfileParams. We do this on the calls to
59 // Get*RequestContextGetter(), so we only initialize ProfileParams right 62 // Get*RequestContextGetter(), so we only initialize ProfileParams right
60 // before posting a task to the IO thread to start using them. This prevents 63 // before posting a task to the IO thread to start using them. This prevents
61 // objects that are supposed to be deleted on the IO thread, but are created 64 // objects that are supposed to be deleted on the IO thread, but are created
62 // on the UI thread from being unnecessarily initialized. 65 // on the UI thread from being unnecessarily initialized.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 mutable HttpTransactionFactoryMap app_http_factory_map_; 132 mutable HttpTransactionFactoryMap app_http_factory_map_;
130 133
131 // Parameters needed for isolated apps. 134 // Parameters needed for isolated apps.
132 FilePath app_path_; 135 FilePath app_path_;
133 mutable bool clear_local_state_on_exit_; 136 mutable bool clear_local_state_on_exit_;
134 137
135 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 138 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
136 }; 139 };
137 140
138 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 141 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698