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

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

Issue 14828010: Revert 200576 "Move winaura specific methods and members from ch..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 #endif 98 #endif
99 99
100 virtual ChromeNetLog* net_log() OVERRIDE; 100 virtual ChromeNetLog* net_log() OVERRIDE;
101 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; 101 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE;
102 virtual ComponentUpdateService* component_updater() OVERRIDE; 102 virtual ComponentUpdateService* component_updater() OVERRIDE;
103 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; 103 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE;
104 virtual PnaclComponentInstaller* pnacl_component_installer() OVERRIDE; 104 virtual PnaclComponentInstaller* pnacl_component_installer() OVERRIDE;
105 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; 105 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE;
106 virtual chrome::MediaFileSystemRegistry* 106 virtual chrome::MediaFileSystemRegistry*
107 media_file_system_registry() OVERRIDE; 107 media_file_system_registry() OVERRIDE;
108 virtual void PlatformSpecificCommandLineProcessing(
109 const CommandLine& command_line) OVERRIDE;
108 virtual bool created_local_state() const OVERRIDE; 110 virtual bool created_local_state() const OVERRIDE;
109 111
112 #if defined(OS_WIN) && defined(USE_AURA)
113 virtual void OnMetroViewerProcessTerminated() OVERRIDE {}
114 #endif
115
110 // Set the local state for tests. Consumer is responsible for cleaning it up 116 // Set the local state for tests. Consumer is responsible for cleaning it up
111 // afterwards (using ScopedTestingLocalState, for example). 117 // afterwards (using ScopedTestingLocalState, for example).
112 void SetLocalState(PrefService* local_state); 118 void SetLocalState(PrefService* local_state);
113 void SetProfileManager(ProfileManager* profile_manager); 119 void SetProfileManager(ProfileManager* profile_manager);
114 void SetIOThread(IOThread* io_thread); 120 void SetIOThread(IOThread* io_thread);
115 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector); 121 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector);
116 void SetSafeBrowsingService(SafeBrowsingService* sb_service); 122 void SetSafeBrowsingService(SafeBrowsingService* sb_service);
117 void SetBookmarkPromptController(BookmarkPromptController* controller); 123 void SetBookmarkPromptController(BookmarkPromptController* controller);
118 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter); 124 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter);
119 125
(...skipping 27 matching lines...) Expand all
147 PrefService* local_state_; 153 PrefService* local_state_;
148 IOThread* io_thread_; 154 IOThread* io_thread_;
149 net::URLRequestContextGetter* system_request_context_; 155 net::URLRequestContextGetter* system_request_context_;
150 156
151 scoped_ptr<BrowserProcessPlatformPart> platform_part_; 157 scoped_ptr<BrowserProcessPlatformPart> platform_part_;
152 158
153 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 159 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
154 }; 160 };
155 161
156 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 162 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « trunk/src/chrome/chrome_browser.gypi ('k') | trunk/src/chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698