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

Side by Side Diff: chrome/browser/browser_process_impl.h

Issue 501011: Speculative fix for a chrome browser crash which occurs with ChromeFrame. Bas... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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/browser_main_win.cc ('k') | chrome/browser/browser_process_impl.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // When each service is created, we set a flag indicating this. At this point, 5 // When each service is created, we set a flag indicating this. At this point,
6 // the service initialization could fail or succeed. This allows us to remember 6 // the service initialization could fail or succeed. This allows us to remember
7 // if we tried to create a service, and not try creating it over and over if 7 // if we tried to create a service, and not try creating it over and over if
8 // the creation failed. 8 // the creation failed.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 } 157 }
158 return automation_provider_list_.get(); 158 return automation_provider_list_.get();
159 } 159 }
160 160
161 virtual void InitDebuggerWrapper(int port) { 161 virtual void InitDebuggerWrapper(int port) {
162 DCHECK(CalledOnValidThread()); 162 DCHECK(CalledOnValidThread());
163 if (!created_debugger_wrapper_) 163 if (!created_debugger_wrapper_)
164 CreateDebuggerWrapper(port); 164 CreateDebuggerWrapper(port);
165 } 165 }
166 166
167 virtual unsigned int AddRefModule() { 167 virtual unsigned int AddRefModule();
168 DCHECK(CalledOnValidThread());
169 module_ref_count_++;
170 return module_ref_count_;
171 }
172 168
173 virtual unsigned int ReleaseModule() { 169 virtual unsigned int ReleaseModule();
174 DCHECK(CalledOnValidThread());
175 DCHECK(0 != module_ref_count_);
176 module_ref_count_--;
177 if (0 == module_ref_count_) {
178 MessageLoop::current()->Quit();
179 }
180 return module_ref_count_;
181 }
182 170
183 virtual bool IsShuttingDown() { 171 virtual bool IsShuttingDown() {
184 DCHECK(CalledOnValidThread()); 172 DCHECK(CalledOnValidThread());
185 return 0 == module_ref_count_; 173 return 0 == module_ref_count_;
186 } 174 }
187 175
188 virtual printing::PrintJobManager* print_job_manager(); 176 virtual printing::PrintJobManager* print_job_manager();
189 177
190 virtual GoogleURLTracker* google_url_tracker() { 178 virtual GoogleURLTracker* google_url_tracker() {
191 DCHECK(CalledOnValidThread()); 179 DCHECK(CalledOnValidThread());
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 // Runs on the file thread and stats the inspector's directory, filling in 305 // Runs on the file thread and stats the inspector's directory, filling in
318 // have_inspector_files_ with the result. 306 // have_inspector_files_ with the result.
319 void DoInspectorFilesCheck(); 307 void DoInspectorFilesCheck();
320 // Our best estimate about the existence of the inspector directory. 308 // Our best estimate about the existence of the inspector directory.
321 bool have_inspector_files_; 309 bool have_inspector_files_;
322 310
323 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 311 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
324 }; 312 };
325 313
326 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 314 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_main_win.cc ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698