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

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

Issue 9566001: Hide MHTMLGenerationManager from chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 | 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual DownloadStatusUpdater* download_status_updater() OVERRIDE; 96 virtual DownloadStatusUpdater* download_status_updater() OVERRIDE;
97 virtual DownloadRequestLimiter* download_request_limiter() OVERRIDE; 97 virtual DownloadRequestLimiter* download_request_limiter() OVERRIDE;
98 virtual bool plugin_finder_disabled() const OVERRIDE; 98 virtual bool plugin_finder_disabled() const OVERRIDE;
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;
107 virtual ComponentUpdateService* component_updater() OVERRIDE; 106 virtual ComponentUpdateService* component_updater() OVERRIDE;
108 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; 107 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE;
109 108
110 // Set the local state for tests. Consumer is responsible for cleaning it up 109 // Set the local state for tests. Consumer is responsible for cleaning it up
111 // afterwards (using ScopedTestingLocalState, for example). 110 // afterwards (using ScopedTestingLocalState, for example).
112 void SetLocalState(PrefService* local_state); 111 void SetLocalState(PrefService* local_state);
113 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); 112 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker);
114 void SetProfileManager(ProfileManager* profile_manager); 113 void SetProfileManager(ProfileManager* profile_manager);
115 void SetIOThread(IOThread* io_thread); 114 void SetIOThread(IOThread* io_thread);
116 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector); 115 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector);
(...skipping 16 matching lines...) Expand all
133 scoped_refptr<printing::PrintPreviewTabController> 132 scoped_refptr<printing::PrintPreviewTabController>
134 print_preview_tab_controller_; 133 print_preview_tab_controller_;
135 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; 134 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_;
136 IOThread* io_thread_; 135 IOThread* io_thread_;
137 scoped_refptr<SafeBrowsingService> sb_service_; 136 scoped_refptr<SafeBrowsingService> sb_service_;
138 137
139 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 138 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
140 }; 139 };
141 140
142 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 141 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698