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

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

Issue 10161035: Adding UsbService and UsbDevice constructs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | 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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
9 #pragma once 9 #pragma once
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/timer.h" 17 #include "base/timer.h"
18 #include "chrome/browser/prefs/pref_change_registrar.h" 18 #include "chrome/browser/prefs/pref_change_registrar.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/profiles/profile_impl_io_data.h" 20 #include "chrome/browser/profiles/profile_impl_io_data.h"
21 #include "chrome/browser/usb/usb_service.h"
21 #include "content/public/browser/notification_observer.h" 22 #include "content/public/browser/notification_observer.h"
22 #include "content/public/browser/notification_registrar.h" 23 #include "content/public/browser/notification_registrar.h"
23 24
24 class ExtensionNavigationObserver; 25 class ExtensionNavigationObserver;
25 class ExtensionSystem; 26 class ExtensionSystem;
26 class NetPrefObserver; 27 class NetPrefObserver;
27 class PrefService; 28 class PrefService;
28 class SSLConfigServiceManager; 29 class SSLConfigServiceManager;
29 class VisitedLinkEventListener; 30 class VisitedLinkEventListener;
30 31
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual void MarkAsCleanShutdown() OVERRIDE; 107 virtual void MarkAsCleanShutdown() OVERRIDE;
107 virtual void InitPromoResources() OVERRIDE; 108 virtual void InitPromoResources() OVERRIDE;
108 virtual void InitRegisteredProtocolHandlers() OVERRIDE; 109 virtual void InitRegisteredProtocolHandlers() OVERRIDE;
109 virtual FilePath last_selected_directory() OVERRIDE; 110 virtual FilePath last_selected_directory() OVERRIDE;
110 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; 111 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE;
111 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; 112 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE;
112 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE; 113 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE;
113 virtual GURL GetHomePage() OVERRIDE; 114 virtual GURL GetHomePage() OVERRIDE;
114 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; 115 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE;
115 116
117 #if !defined(OS_ANDROID)
118 virtual UsbService *GetUsbService() OVERRIDE;
119 #endif // !defined(OS_ANDROID)
120
116 #if defined(OS_CHROMEOS) 121 #if defined(OS_CHROMEOS)
117 virtual void ChangeAppLocale(const std::string& locale, 122 virtual void ChangeAppLocale(const std::string& locale,
118 AppLocaleChangedVia) OVERRIDE; 123 AppLocaleChangedVia) OVERRIDE;
119 virtual void OnLogin() OVERRIDE; 124 virtual void OnLogin() OVERRIDE;
120 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE; 125 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE;
121 virtual void InitChromeOSPreferences() OVERRIDE; 126 virtual void InitChromeOSPreferences() OVERRIDE;
122 #endif // defined(OS_CHROMEOS) 127 #endif // defined(OS_CHROMEOS)
123 128
124 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; 129 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE;
125 130
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 218
214 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 219 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
215 scoped_refptr<content::GeolocationPermissionContext> 220 scoped_refptr<content::GeolocationPermissionContext>
216 geolocation_permission_context_; 221 geolocation_permission_context_;
217 scoped_refptr<content::SpeechRecognitionPreferences> 222 scoped_refptr<content::SpeechRecognitionPreferences>
218 speech_recognition_preferences_; 223 speech_recognition_preferences_;
219 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; 224 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_;
220 scoped_refptr<HistoryService> history_service_; 225 scoped_refptr<HistoryService> history_service_;
221 scoped_ptr<FaviconService> favicon_service_; 226 scoped_ptr<FaviconService> favicon_service_;
222 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; 227 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_;
228 scoped_ptr<UsbService> usb_service_;
Elliot Glaysher 2012/04/25 21:10:20 NACK. This exactly the sort of thing we're trying
Garret Kelly 2012/04/25 21:15:17 Oops! My mistake. Thank you for the pointer. Fixin
miket_OOO 2012/04/25 21:24:36 Shouldn't this (and the include) be guarded with t
223 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; 229 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_;
224 scoped_refptr<WebDataService> web_data_service_; 230 scoped_refptr<WebDataService> web_data_service_;
225 bool history_service_created_; 231 bool history_service_created_;
226 bool favicon_service_created_; 232 bool favicon_service_created_;
227 bool created_web_data_service_; 233 bool created_web_data_service_;
228 bool clear_local_state_on_exit_; 234 bool clear_local_state_on_exit_;
229 235
230 // Whether or not the last session exited cleanly. This is set only once. 236 // Whether or not the last session exited cleanly. This is set only once.
231 bool last_session_exited_cleanly_; 237 bool last_session_exited_cleanly_;
232 238
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 Profile::Delegate* delegate_; 275 Profile::Delegate* delegate_;
270 276
271 chrome_browser_net::Predictor* predictor_; 277 chrome_browser_net::Predictor* predictor_;
272 278
273 bool session_restore_enabled_; 279 bool session_restore_enabled_;
274 280
275 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 281 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
276 }; 282 };
277 283
278 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 284 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698