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

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

Issue 9568002: Renamed speech input implementation from to speech_recognition_*. The namespace has been renamed fr… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased from master. Created 8 years, 9 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_renderer.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 #pragma once 7 #pragma once
8 8
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
(...skipping 22 matching lines...) Expand all
33 33
34 class FilePath; 34 class FilePath;
35 35
36 namespace content { 36 namespace content {
37 37
38 class DOMStorageContext; 38 class DOMStorageContext;
39 class DownloadManager; 39 class DownloadManager;
40 class GeolocationPermissionContext; 40 class GeolocationPermissionContext;
41 class IndexedDBContext; 41 class IndexedDBContext;
42 class ResourceContext; 42 class ResourceContext;
43 class SpeechInputPreferences; 43 class SpeechRecognitionPreferences;
44 44
45 // This class holds the context needed for a browsing session. 45 // This class holds the context needed for a browsing session.
46 // It lives on the UI thread. 46 // It lives on the UI thread.
47 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { 47 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
48 public: 48 public:
49 static quota::QuotaManager* GetQuotaManager(BrowserContext* browser_context); 49 static quota::QuotaManager* GetQuotaManager(BrowserContext* browser_context);
50 static DOMStorageContext* GetDOMStorageContext( 50 static DOMStorageContext* GetDOMStorageContext(
51 BrowserContext* browser_context); 51 BrowserContext* browser_context);
52 static IndexedDBContext* GetIndexedDBContext(BrowserContext* browser_context); 52 static IndexedDBContext* GetIndexedDBContext(BrowserContext* browser_context);
53 static webkit_database::DatabaseTracker* GetDatabaseTracker( 53 static webkit_database::DatabaseTracker* GetDatabaseTracker(
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Returns the request context for media resources associated with this 103 // Returns the request context for media resources associated with this
104 // context. 104 // context.
105 virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0; 105 virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0;
106 106
107 // Returns the resource context. 107 // Returns the resource context.
108 virtual ResourceContext* GetResourceContext() = 0; 108 virtual ResourceContext* GetResourceContext() = 0;
109 109
110 // Returns the geolocation permission context for this context. 110 // Returns the geolocation permission context for this context.
111 virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0; 111 virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0;
112 112
113 // Returns the speech input preferences. SpeechInputPreferences is a 113 // Returns the speech input preferences. SpeechRecognitionPreferences is a
114 // ref counted class, so callers should take a reference if needed. 114 // ref counted class, so callers should take a reference if needed.
115 virtual SpeechInputPreferences* GetSpeechInputPreferences() = 0; 115 virtual SpeechRecognitionPreferences* GetSpeechRecognitionPreferences() = 0;
116 116
117 // Returns true if the last time this context was open it was exited cleanly. 117 // Returns true if the last time this context was open it was exited cleanly.
118 // This doesn't belong here; http://crbug.com/90737 118 // This doesn't belong here; http://crbug.com/90737
119 virtual bool DidLastSessionExitCleanly() = 0; 119 virtual bool DidLastSessionExitCleanly() = 0;
120 120
121 // Returns a special storage policy implementation, or NULL. 121 // Returns a special storage policy implementation, or NULL.
122 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() = 0; 122 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() = 0;
123 }; 123 };
124 124
125 } // namespace content 125 } // namespace content
126 126
127 #if defined(COMPILER_GCC) 127 #if defined(COMPILER_GCC)
128 namespace BASE_HASH_NAMESPACE { 128 namespace BASE_HASH_NAMESPACE {
129 129
130 template<> 130 template<>
131 struct hash<content::BrowserContext*> { 131 struct hash<content::BrowserContext*> {
132 std::size_t operator()(content::BrowserContext* const& p) const { 132 std::size_t operator()(content::BrowserContext* const& p) const {
133 return reinterpret_cast<std::size_t>(p); 133 return reinterpret_cast<std::size_t>(p);
134 } 134 }
135 }; 135 };
136 136
137 } // namespace BASE_HASH_NAMESPACE 137 } // namespace BASE_HASH_NAMESPACE
138 #endif 138 #endif
139 139
140 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 140 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698