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

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

Issue 342043: Connect the various pieces for notifications... hook up NotificationUIManager... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove stale TODO Created 11 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/renderer/render_view.h ('k') | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_TESTING_BROWSER_PROCESS_H_ 10 #ifndef CHROME_TEST_TESTING_BROWSER_PROCESS_H_
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 virtual Clipboard* clipboard() { 98 virtual Clipboard* clipboard() {
99 if (!clipboard_.get()) { 99 if (!clipboard_.get()) {
100 // Note that we need a MessageLoop for the next call to work. 100 // Note that we need a MessageLoop for the next call to work.
101 clipboard_.reset(new Clipboard); 101 clipboard_.reset(new Clipboard);
102 } 102 }
103 return clipboard_.get(); 103 return clipboard_.get();
104 } 104 }
105 105
106 virtual NotificationUIManager* notification_ui_manager() {
107 return NULL;
108 }
109
106 virtual GoogleURLTracker* google_url_tracker() { 110 virtual GoogleURLTracker* google_url_tracker() {
107 return NULL; 111 return NULL;
108 } 112 }
109 113
110 virtual AutomationProviderList* InitAutomationProviderList() { 114 virtual AutomationProviderList* InitAutomationProviderList() {
111 return NULL; 115 return NULL;
112 } 116 }
113 117
114 virtual void InitDebuggerWrapper(int port) { 118 virtual void InitDebuggerWrapper(int port) {
115 } 119 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 152
149 private: 153 private:
150 NotificationService notification_service_; 154 NotificationService notification_service_;
151 scoped_ptr<base::WaitableEvent> shutdown_event_; 155 scoped_ptr<base::WaitableEvent> shutdown_event_;
152 scoped_ptr<Clipboard> clipboard_; 156 scoped_ptr<Clipboard> clipboard_;
153 157
154 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 158 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
155 }; 159 };
156 160
157 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ 161 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698