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

Side by Side Diff: content/public/browser/browser_context.h

Issue 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Perhaps HostZoomLevelContextDeleter was needed after all ... Created 6 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 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 CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/supports_user_data.h" 11 #include "base/supports_user_data.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/public/browser/zoom_level_delegate.h"
13 #include "content/public/common/push_messaging_status.h" 14 #include "content/public/common/push_messaging_status.h"
14 15
15 class GURL; 16 class GURL;
16 17
17 namespace base { 18 namespace base {
18 class FilePath; 19 class FilePath;
19 } 20 }
20 21
21 namespace storage { 22 namespace storage {
22 class ExternalMountPoints; 23 class ExternalMountPoints;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // thread before they use BrowserContext, they should call this to make sure 105 // thread before they use BrowserContext, they should call this to make sure
105 // that the ResourceContext is ready. 106 // that the ResourceContext is ready.
106 static void EnsureResourceContextInitialized(BrowserContext* browser_context); 107 static void EnsureResourceContextInitialized(BrowserContext* browser_context);
107 108
108 // Tells the HTML5 objects on this context to persist their session state 109 // Tells the HTML5 objects on this context to persist their session state
109 // across the next restart. 110 // across the next restart.
110 static void SaveSessionState(BrowserContext* browser_context); 111 static void SaveSessionState(BrowserContext* browser_context);
111 112
112 ~BrowserContext() override; 113 ~BrowserContext() override;
113 114
115 // Override to provide for creation of a delegate that can be used to persist
Charlie Reis 2014/11/04 23:43:17 This is too wordy to follow. Maybe: Creates a de
wjmaclean 2014/11/05 21:55:42 Done.
116 // data stored in a HostZoomMap. The delegate is used to initialize the
117 // HostZoomMap and persist its information. This is called during creation
118 // of each StoragePartition.
119 virtual scoped_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate(
120 const base::FilePath& partition_path);
Charlie Reis 2014/11/04 23:43:17 This should be pure abstract, like all the other m
wjmaclean 2014/11/05 21:55:42 Done.
121
114 // Returns the path of the directory where this context's data is stored. 122 // Returns the path of the directory where this context's data is stored.
115 virtual base::FilePath GetPath() const = 0; 123 virtual base::FilePath GetPath() const = 0;
116 124
117 // Return whether this context is incognito. Default is false. 125 // Return whether this context is incognito. Default is false.
118 virtual bool IsOffTheRecord() const = 0; 126 virtual bool IsOffTheRecord() const = 0;
119 127
120 // Returns the request context information associated with this context. Call 128 // Returns the request context information associated with this context. Call
121 // this only on the UI thread, since it can send notifications that should 129 // this only on the UI thread, since it can send notifications that should
122 // happen on the UI thread. 130 // happen on the UI thread.
123 // TODO(creis): Remove this version in favor of the one below. 131 // TODO(creis): Remove this version in favor of the one below.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 virtual PushMessagingService* GetPushMessagingService() = 0; 172 virtual PushMessagingService* GetPushMessagingService() = 0;
165 173
166 // Returns the SSL host state decisions for this context. The context may 174 // Returns the SSL host state decisions for this context. The context may
167 // return NULL, implementing the default exception storage strategy. 175 // return NULL, implementing the default exception storage strategy.
168 virtual SSLHostStateDelegate* GetSSLHostStateDelegate() = 0; 176 virtual SSLHostStateDelegate* GetSSLHostStateDelegate() = 0;
169 }; 177 };
170 178
171 } // namespace content 179 } // namespace content
172 180
173 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 181 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698