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

Side by Side Diff: chrome/test/testing_browser_process.cc

Issue 6292017: Extended: Add "system" URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 9 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
« no previous file with comments | « chrome/test/testing_browser_process.h ('k') | chrome/test/testing_profile.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) 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 #include "chrome/test/testing_browser_process.h" 5 #include "chrome/test/testing_browser_process.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
9 #include "chrome/browser/google/google_url_tracker.h" 9 #include "chrome/browser/google/google_url_tracker.h"
10 #include "chrome/browser/policy/browser_policy_connector.h" 10 #include "chrome/browser/policy/browser_policy_connector.h"
11 #include "chrome/browser/policy/configuration_policy_pref_store.h" 11 #include "chrome/browser/policy/configuration_policy_pref_store.h"
12 #include "chrome/browser/policy/configuration_policy_provider.h" 12 #include "chrome/browser/policy/configuration_policy_provider.h"
13 #include "chrome/browser/policy/dummy_configuration_policy_provider.h" 13 #include "chrome/browser/policy/dummy_configuration_policy_provider.h"
14 #include "chrome/browser/prefs/pref_service.h" 14 #include "chrome/browser/prefs/pref_service.h"
15 #include "chrome/browser/profiles/profile_manager.h" 15 #include "chrome/browser/profiles/profile_manager.h"
16 #include "chrome/common/net/url_request_context_getter.h"
16 #include "ui/base/clipboard/clipboard.h" 17 #include "ui/base/clipboard/clipboard.h"
17 18
18 TestingBrowserProcess::TestingBrowserProcess() 19 TestingBrowserProcess::TestingBrowserProcess()
19 : shutdown_event_(new base::WaitableEvent(true, false)), 20 : shutdown_event_(new base::WaitableEvent(true, false)),
20 module_ref_count_(0), 21 module_ref_count_(0),
21 app_locale_("en"), 22 app_locale_("en"),
22 pref_service_(NULL) { 23 pref_service_(NULL) {
23 } 24 }
24 25
25 TestingBrowserProcess::~TestingBrowserProcess() { 26 TestingBrowserProcess::~TestingBrowserProcess() {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 107
107 TabCloseableStateWatcher* TestingBrowserProcess::tab_closeable_state_watcher() { 108 TabCloseableStateWatcher* TestingBrowserProcess::tab_closeable_state_watcher() {
108 return NULL; 109 return NULL;
109 } 110 }
110 111
111 safe_browsing::ClientSideDetectionService* 112 safe_browsing::ClientSideDetectionService*
112 TestingBrowserProcess::safe_browsing_detection_service() { 113 TestingBrowserProcess::safe_browsing_detection_service() {
113 return NULL; 114 return NULL;
114 } 115 }
115 116
117 URLRequestContextGetter* TestingBrowserProcess::system_request_context() {
118 return NULL;
119 }
120
121 #if defined(OS_CHROMEOS)
122 chromeos::ProxyConfigServiceImpl*
123 TestingBrowserProcess::chromeos_proxy_config_service_impl() {
124 return NULL;
125 }
126 #endif // defined(OS_CHROMEOS)
127
116 ui::Clipboard* TestingBrowserProcess::clipboard() { 128 ui::Clipboard* TestingBrowserProcess::clipboard() {
117 if (!clipboard_.get()) { 129 if (!clipboard_.get()) {
118 // Note that we need a MessageLoop for the next call to work. 130 // Note that we need a MessageLoop for the next call to work.
119 clipboard_.reset(new ui::Clipboard); 131 clipboard_.reset(new ui::Clipboard);
120 } 132 }
121 return clipboard_.get(); 133 return clipboard_.get();
122 } 134 }
123 135
124 ExtensionEventRouterForwarder* 136 ExtensionEventRouterForwarder*
125 TestingBrowserProcess::extension_event_router_forwarder() { 137 TestingBrowserProcess::extension_event_router_forwarder() {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 238
227 ScopedTestingBrowserProcess::~ScopedTestingBrowserProcess() { 239 ScopedTestingBrowserProcess::~ScopedTestingBrowserProcess() {
228 DCHECK_EQ(browser_process_.get(), g_browser_process); 240 DCHECK_EQ(browser_process_.get(), g_browser_process);
229 241
230 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. 242 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062.
231 // After the transition is over, we should just 243 // After the transition is over, we should just
232 // reset |g_browser_process| to NULL. 244 // reset |g_browser_process| to NULL.
233 browser_process_.reset(); 245 browser_process_.reset();
234 g_browser_process = new TestingBrowserProcess(); 246 g_browser_process = new TestingBrowserProcess();
235 } 247 }
OLDNEW
« no previous file with comments | « chrome/test/testing_browser_process.h ('k') | chrome/test/testing_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698