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

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

Issue 1011953003: Refactor Permissions related method out of ContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_type_enum_class
Patch Set: fix cros Created 5 years, 8 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
« no previous file with comments | « content/content_shell.gypi ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 21 matching lines...) Expand all
32 class SpecialStoragePolicy; 32 class SpecialStoragePolicy;
33 } 33 }
34 34
35 namespace content { 35 namespace content {
36 36
37 class BlobHandle; 37 class BlobHandle;
38 class BrowserPluginGuestManager; 38 class BrowserPluginGuestManager;
39 class DownloadManager; 39 class DownloadManager;
40 class DownloadManagerDelegate; 40 class DownloadManagerDelegate;
41 class IndexedDBContext; 41 class IndexedDBContext;
42 class PermissionManager;
42 class PushMessagingService; 43 class PushMessagingService;
43 class ResourceContext; 44 class ResourceContext;
44 class SiteInstance; 45 class SiteInstance;
45 class StoragePartition; 46 class StoragePartition;
46 class SSLHostStateDelegate; 47 class SSLHostStateDelegate;
47 48
48 // This class holds the context needed for a browsing session. 49 // This class holds the context needed for a browsing session.
49 // It lives on the UI thread. All these methods must only be called on the UI 50 // It lives on the UI thread. All these methods must only be called on the UI
50 // thread. 51 // thread.
51 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { 52 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() = 0; 175 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() = 0;
175 176
176 // Returns a push messaging service. The embedder owns the service, and is 177 // Returns a push messaging service. The embedder owns the service, and is
177 // responsible for ensuring that it outlives RenderProcessHost. It's valid to 178 // responsible for ensuring that it outlives RenderProcessHost. It's valid to
178 // return nullptr. 179 // return nullptr.
179 virtual PushMessagingService* GetPushMessagingService() = 0; 180 virtual PushMessagingService* GetPushMessagingService() = 0;
180 181
181 // Returns the SSL host state decisions for this context. The context may 182 // Returns the SSL host state decisions for this context. The context may
182 // return nullptr, implementing the default exception storage strategy. 183 // return nullptr, implementing the default exception storage strategy.
183 virtual SSLHostStateDelegate* GetSSLHostStateDelegate() = 0; 184 virtual SSLHostStateDelegate* GetSSLHostStateDelegate() = 0;
185
186 // Returns the PermissionManager associated with that context if any, nullptr
187 // otherwise.
188 virtual PermissionManager* GetPermissionManager() = 0;
184 }; 189 };
185 190
186 } // namespace content 191 } // namespace content
187 192
188 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 193 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/content_shell.gypi ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698