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

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

Issue 8574070: Move enabling IPC logging for all child processes to the Content API. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/views/about_ipc_dialog.cc ('k') | content/browser/content_ipc_logging.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 virtual DownloadStatusUpdater* download_status_updater() OVERRIDE; 103 virtual DownloadStatusUpdater* download_status_updater() OVERRIDE;
104 virtual DownloadRequestLimiter* download_request_limiter() OVERRIDE; 104 virtual DownloadRequestLimiter* download_request_limiter() OVERRIDE;
105 virtual bool plugin_finder_disabled() const OVERRIDE; 105 virtual bool plugin_finder_disabled() const OVERRIDE;
106 106
107 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 107 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
108 virtual void StartAutoupdateTimer() OVERRIDE {} 108 virtual void StartAutoupdateTimer() OVERRIDE {}
109 #endif 109 #endif
110 110
111 virtual ChromeNetLog* net_log() OVERRIDE; 111 virtual ChromeNetLog* net_log() OVERRIDE;
112 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; 112 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE;
113
114 #if defined(IPC_MESSAGE_LOG_ENABLED)
115 virtual void SetIPCLoggingEnabled(bool enable) OVERRIDE {}
116 #endif
117 virtual MHTMLGenerationManager* mhtml_generation_manager() OVERRIDE; 113 virtual MHTMLGenerationManager* mhtml_generation_manager() OVERRIDE;
118 virtual GpuBlacklistUpdater* gpu_blacklist_updater() OVERRIDE; 114 virtual GpuBlacklistUpdater* gpu_blacklist_updater() OVERRIDE;
119 virtual ComponentUpdateService* component_updater() OVERRIDE; 115 virtual ComponentUpdateService* component_updater() OVERRIDE;
120 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; 116 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE;
121 117
122 // Set the local state for tests. Consumer is responsible for cleaning it up 118 // Set the local state for tests. Consumer is responsible for cleaning it up
123 // afterwards (using ScopedTestingLocalState, for example). 119 // afterwards (using ScopedTestingLocalState, for example).
124 void SetLocalState(PrefService* local_state); 120 void SetLocalState(PrefService* local_state);
125 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); 121 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker);
126 void SetProfileManager(ProfileManager* profile_manager); 122 void SetProfileManager(ProfileManager* profile_manager);
(...skipping 15 matching lines...) Expand all
142 scoped_ptr<NotificationUIManager> notification_ui_manager_; 138 scoped_ptr<NotificationUIManager> notification_ui_manager_;
143 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; 139 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_;
144 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; 140 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_;
145 IOThread* io_thread_; 141 IOThread* io_thread_;
146 scoped_ptr<DevToolsManager> devtools_manager_; 142 scoped_ptr<DevToolsManager> devtools_manager_;
147 143
148 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 144 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
149 }; 145 };
150 146
151 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 147 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/about_ipc_dialog.cc ('k') | content/browser/content_ipc_logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698