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

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

Issue 3806005: FBTF: More ctor/dtor cleanup. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This interface is for managing the global services of the application. Each 5 // This interface is for managing the global services of the application. Each
6 // service is lazily created when requested the first time. The service getters 6 // service is lazily created when requested the first time. The service getters
7 // will return NULL if the service is not available, so callers must check for 7 // will return NULL if the service is not available, so callers must check for
8 // this condition. 8 // this condition.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 namespace printing { 42 namespace printing {
43 class PrintJobManager; 43 class PrintJobManager;
44 } 44 }
45 45
46 class IOThread; 46 class IOThread;
47 47
48 // NOT THREAD SAFE, call only from the main thread. 48 // NOT THREAD SAFE, call only from the main thread.
49 // These functions shouldn't return NULL unless otherwise noted. 49 // These functions shouldn't return NULL unless otherwise noted.
50 class BrowserProcess { 50 class BrowserProcess {
51 public: 51 public:
52 BrowserProcess() {} 52 BrowserProcess();
53 virtual ~BrowserProcess() {} 53 virtual ~BrowserProcess();
54 54
55 // Invoked when the user is logging out/shutting down. When logging off we may 55 // Invoked when the user is logging out/shutting down. When logging off we may
56 // not have enough time to do a normal shutdown. This method is invoked prior 56 // not have enough time to do a normal shutdown. This method is invoked prior
57 // to normal shutdown and saves any state that must be saved before we are 57 // to normal shutdown and saves any state that must be saved before we are
58 // continue shutdown. 58 // continue shutdown.
59 virtual void EndSession() = 0; 59 virtual void EndSession() = 0;
60 60
61 // Services: any of these getters may return NULL 61 // Services: any of these getters may return NULL
62 virtual ResourceDispatcherHost* resource_dispatcher_host() = 0; 62 virtual ResourceDispatcherHost* resource_dispatcher_host() = 0;
63 63
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 private: 168 private:
169 // User-data-dir based profiles. 169 // User-data-dir based profiles.
170 std::vector<std::wstring> user_data_dir_profiles_; 170 std::vector<std::wstring> user_data_dir_profiles_;
171 171
172 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 172 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
173 }; 173 };
174 174
175 extern BrowserProcess* g_browser_process; 175 extern BrowserProcess* g_browser_process;
176 176
177 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 177 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/appcache/view_appcache_internals_job_factory.cc ('k') | chrome/browser/browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698