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

Side by Side Diff: chrome/browser/browser_process.h

Issue 2731283009: Swap ownership of RulesetService and the content delegate (Closed)
Patch Set: engedy review Created 3 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 | « no previous file | chrome/browser/browser_process_impl.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 // This interface is for managing the global services of the application. Each 5 // This interface is for managing the global services of the application. Each
6 // service is lazily created when requested the first time. The service getters 6 // service is lazily created when requested the first time. The service getters
7 // will return NULL if the service is not available, so callers must check for 7 // will return NULL if the service is not available, so callers must check for
8 // this condition. 8 // this condition.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_
(...skipping 28 matching lines...) Expand all
39 class WatchDogThread; 39 class WatchDogThread;
40 #if BUILDFLAG(ENABLE_WEBRTC) 40 #if BUILDFLAG(ENABLE_WEBRTC)
41 class WebRtcLogUploader; 41 class WebRtcLogUploader;
42 #endif 42 #endif
43 43
44 namespace safe_browsing { 44 namespace safe_browsing {
45 class SafeBrowsingService; 45 class SafeBrowsingService;
46 } 46 }
47 47
48 namespace subresource_filter { 48 namespace subresource_filter {
49 class RulesetService; 49 class ContentRulesetService;
50 } 50 }
51 51
52 namespace variations { 52 namespace variations {
53 class VariationsService; 53 class VariationsService;
54 } 54 }
55 55
56 namespace component_updater { 56 namespace component_updater {
57 class ComponentUpdateService; 57 class ComponentUpdateService;
58 class PnaclComponentInstaller; 58 class PnaclComponentInstaller;
59 class SupervisedUserWhitelistInstaller; 59 class SupervisedUserWhitelistInstaller;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // Returns the SafeBrowsing service. 232 // Returns the SafeBrowsing service.
233 virtual safe_browsing::SafeBrowsingService* safe_browsing_service() = 0; 233 virtual safe_browsing::SafeBrowsingService* safe_browsing_service() = 0;
234 234
235 // Returns an object which handles communication with the SafeBrowsing 235 // Returns an object which handles communication with the SafeBrowsing
236 // client-side detection servers. 236 // client-side detection servers.
237 virtual safe_browsing::ClientSideDetectionService* 237 virtual safe_browsing::ClientSideDetectionService*
238 safe_browsing_detection_service() = 0; 238 safe_browsing_detection_service() = 0;
239 239
240 // Returns the service providing versioned storage for rules used by the Safe 240 // Returns the service providing versioned storage for rules used by the Safe
241 // Browsing subresource filter. 241 // Browsing subresource filter.
242 virtual subresource_filter::RulesetService* 242 virtual subresource_filter::ContentRulesetService*
243 subresource_filter_ruleset_service() = 0; 243 subresource_filter_ruleset_service() = 0;
244 244
245 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 245 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
246 // This will start a timer that, if Chrome is in persistent mode, will check 246 // This will start a timer that, if Chrome is in persistent mode, will check
247 // whether an update is available, and if that's the case, restart the 247 // whether an update is available, and if that's the case, restart the
248 // browser. Note that restart code will strip some of the command line keys 248 // browser. Note that restart code will strip some of the command line keys
249 // and all loose values from the cl this instance of Chrome was launched with, 249 // and all loose values from the cl this instance of Chrome was launched with,
250 // and add the command line key that will force Chrome to start in the 250 // and add the command line key that will force Chrome to start in the
251 // background mode. For the full list of "blacklisted" keys, refer to 251 // background mode. For the full list of "blacklisted" keys, refer to
252 // |kSwitchesToRemoveOnAutorestart| array in browser_process_impl.cc. 252 // |kSwitchesToRemoveOnAutorestart| array in browser_process_impl.cc.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // Returns the Physical Web data source. 289 // Returns the Physical Web data source.
290 virtual physical_web::PhysicalWebDataSource* GetPhysicalWebDataSource() = 0; 290 virtual physical_web::PhysicalWebDataSource* GetPhysicalWebDataSource() = 0;
291 291
292 private: 292 private:
293 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 293 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
294 }; 294 };
295 295
296 extern BrowserProcess* g_browser_process; 296 extern BrowserProcess* g_browser_process;
297 297
298 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 298 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698