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/off_the_record_profile_impl.h

Issue 9416070: Move creation and ownership of HostZoomMap to content instead of having every embedder do this. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 5 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 // content::BrowserContext implementation: 107 // content::BrowserContext implementation:
108 virtual FilePath GetPath() OVERRIDE; 108 virtual FilePath GetPath() OVERRIDE;
109 virtual bool IsOffTheRecord() OVERRIDE; 109 virtual bool IsOffTheRecord() OVERRIDE;
110 virtual content::DownloadManager* GetDownloadManager() OVERRIDE; 110 virtual content::DownloadManager* GetDownloadManager() OVERRIDE;
111 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 111 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
112 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 112 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
113 int renderer_child_id) OVERRIDE; 113 int renderer_child_id) OVERRIDE;
114 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE; 114 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE;
115 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 115 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
116 virtual content::HostZoomMap* GetHostZoomMap() OVERRIDE;
117 virtual content::GeolocationPermissionContext* 116 virtual content::GeolocationPermissionContext*
118 GetGeolocationPermissionContext() OVERRIDE; 117 GetGeolocationPermissionContext() OVERRIDE;
119 virtual content::SpeechInputPreferences* GetSpeechInputPreferences() OVERRIDE; 118 virtual content::SpeechInputPreferences* GetSpeechInputPreferences() OVERRIDE;
120 virtual bool DidLastSessionExitCleanly() OVERRIDE; 119 virtual bool DidLastSessionExitCleanly() OVERRIDE;
121 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 120 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
122 121
123 // content::NotificationObserver implementation. 122 // content::NotificationObserver implementation.
124 virtual void Observe(int type, 123 virtual void Observe(int type,
125 const content::NotificationSource& source, 124 const content::NotificationSource& source,
126 const content::NotificationDetails& details) OVERRIDE; 125 const content::NotificationDetails& details) OVERRIDE;
(...skipping 10 matching lines...) Expand all
137 OffTheRecordProfileIOData::Handle io_data_; 136 OffTheRecordProfileIOData::Handle io_data_;
138 137
139 // Must be freed before |io_data_|. While |extension_process_manager_| still 138 // Must be freed before |io_data_|. While |extension_process_manager_| still
140 // lives, we handle incoming resource requests from extension processes and 139 // lives, we handle incoming resource requests from extension processes and
141 // those require access to the ResourceContext owned by |io_data_|. 140 // those require access to the ResourceContext owned by |io_data_|.
142 scoped_ptr<ExtensionProcessManager> extension_process_manager_; 141 scoped_ptr<ExtensionProcessManager> extension_process_manager_;
143 142
144 // We use a non-persistent content settings map for OTR. 143 // We use a non-persistent content settings map for OTR.
145 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 144 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
146 145
147 // Use a separate zoom map for OTR.
148 scoped_refptr<content::HostZoomMap> host_zoom_map_;
149
150 // Time we were started. 146 // Time we were started.
151 Time start_time_; 147 Time start_time_;
152 148
153 FilePath last_selected_directory_; 149 FilePath last_selected_directory_;
154 150
155 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 151 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
156 152
157 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; 153 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
158 154
159 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 155 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
160 }; 156 };
161 157
162 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 158 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698