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

Side by Side Diff: chrome/test/base/testing_browser_process.h

Issue 9433006: Remove GetAudioManager and GetMediaStreamManager from ResourceContext. The reason is the content mo… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 10 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 // An implementation of BrowserProcess for unit tests that fails for most 5 // An implementation of BrowserProcess for unit tests that fails for most
6 // services. By preventing creation of services, we reduce dependencies and 6 // services. By preventing creation of services, we reduce dependencies and
7 // keep the profile clean. Clients of this class must handle the NULL return 7 // keep the profile clean. Clients of this class must handle the NULL return
8 // value, however. 8 // value, however.
9 9
10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 100 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
101 virtual void StartAutoupdateTimer() OVERRIDE {} 101 virtual void StartAutoupdateTimer() OVERRIDE {}
102 #endif 102 #endif
103 103
104 virtual ChromeNetLog* net_log() OVERRIDE; 104 virtual ChromeNetLog* net_log() OVERRIDE;
105 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; 105 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE;
106 virtual MHTMLGenerationManager* mhtml_generation_manager() OVERRIDE; 106 virtual MHTMLGenerationManager* mhtml_generation_manager() OVERRIDE;
107 virtual ComponentUpdateService* component_updater() OVERRIDE; 107 virtual ComponentUpdateService* component_updater() OVERRIDE;
108 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; 108 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE;
109 virtual AudioManager* audio_manager() OVERRIDE;
110 109
111 // Set the local state for tests. Consumer is responsible for cleaning it up 110 // Set the local state for tests. Consumer is responsible for cleaning it up
112 // afterwards (using ScopedTestingLocalState, for example). 111 // afterwards (using ScopedTestingLocalState, for example).
113 void SetLocalState(PrefService* local_state); 112 void SetLocalState(PrefService* local_state);
114 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); 113 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker);
115 void SetProfileManager(ProfileManager* profile_manager); 114 void SetProfileManager(ProfileManager* profile_manager);
116 void SetIOThread(IOThread* io_thread); 115 void SetIOThread(IOThread* io_thread);
117 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector); 116 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector);
118 void SetSafeBrowsingService(SafeBrowsingService* sb_service); 117 void SetSafeBrowsingService(SafeBrowsingService* sb_service);
119 118
(...skipping 14 matching lines...) Expand all
134 scoped_refptr<printing::PrintPreviewTabController> 133 scoped_refptr<printing::PrintPreviewTabController>
135 print_preview_tab_controller_; 134 print_preview_tab_controller_;
136 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; 135 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_;
137 IOThread* io_thread_; 136 IOThread* io_thread_;
138 scoped_refptr<SafeBrowsingService> sb_service_; 137 scoped_refptr<SafeBrowsingService> sb_service_;
139 138
140 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 139 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
141 }; 140 };
142 141
143 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 142 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/speech_input_window_controller.mm ('k') | chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698