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

Side by Side Diff: content/browser/browser_main_loop.h

Issue 251613002: Broadcast NotifyTimezoneChange to all RenderProcessHosts when the system time zone changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (267223) Created 6 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
« no previous file with comments | « content/browser/android/browser_jni_registrar.cc ('k') | content/browser/browser_main_loop.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) 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 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 26 matching lines...) Expand all
37 namespace content { 37 namespace content {
38 class AudioMirroringManager; 38 class AudioMirroringManager;
39 class BrowserMainParts; 39 class BrowserMainParts;
40 class BrowserOnlineStateObserver; 40 class BrowserOnlineStateObserver;
41 class BrowserShutdownImpl; 41 class BrowserShutdownImpl;
42 class BrowserThreadImpl; 42 class BrowserThreadImpl;
43 class MediaStreamManager; 43 class MediaStreamManager;
44 class ResourceDispatcherHostImpl; 44 class ResourceDispatcherHostImpl;
45 class SpeechRecognitionManagerImpl; 45 class SpeechRecognitionManagerImpl;
46 class StartupTaskRunner; 46 class StartupTaskRunner;
47 class SystemMessageWindowWin; 47 class TimeZoneMonitor;
48 struct MainFunctionParams; 48 struct MainFunctionParams;
49 49
50 #if defined(OS_LINUX) 50 #if defined(OS_LINUX)
51 class DeviceMonitorLinux; 51 class DeviceMonitorLinux;
52 #elif defined(OS_MACOSX) 52 #elif defined(OS_MACOSX)
53 class DeviceMonitorMac; 53 class DeviceMonitorMac;
54 #elif defined(OS_WIN)
55 class SystemMessageWindowWin;
54 #endif 56 #endif
55 57
56 // Implements the main browser loop stages called from BrowserMainRunner. 58 // Implements the main browser loop stages called from BrowserMainRunner.
57 // See comments in browser_main_parts.h for additional info. 59 // See comments in browser_main_parts.h for additional info.
58 class CONTENT_EXPORT BrowserMainLoop { 60 class CONTENT_EXPORT BrowserMainLoop {
59 public: 61 public:
60 // Returns the current instance. This is used to get access to the getters 62 // Returns the current instance. This is used to get access to the getters
61 // that return objects which are owned by this class. 63 // that return objects which are owned by this class.
62 static BrowserMainLoop* GetInstance(); 64 static BrowserMainLoop* GetInstance();
63 65
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // classes constructed in content (but after main_thread_). 168 // classes constructed in content (but after main_thread_).
167 scoped_ptr<BrowserMainParts> parts_; 169 scoped_ptr<BrowserMainParts> parts_;
168 170
169 // Members initialized in |InitializeMainThread()| --------------------------- 171 // Members initialized in |InitializeMainThread()| ---------------------------
170 // This must get destroyed before other threads that are created in parts_. 172 // This must get destroyed before other threads that are created in parts_.
171 scoped_ptr<BrowserThreadImpl> main_thread_; 173 scoped_ptr<BrowserThreadImpl> main_thread_;
172 174
173 // Members initialized in |BrowserThreadsStarted()| -------------------------- 175 // Members initialized in |BrowserThreadsStarted()| --------------------------
174 scoped_ptr<ResourceDispatcherHostImpl> resource_dispatcher_host_; 176 scoped_ptr<ResourceDispatcherHostImpl> resource_dispatcher_host_;
175 scoped_ptr<SpeechRecognitionManagerImpl> speech_recognition_manager_; 177 scoped_ptr<SpeechRecognitionManagerImpl> speech_recognition_manager_;
178 scoped_ptr<TimeZoneMonitor> time_zone_monitor_;
176 179
177 // Members initialized in |RunMainMessageLoopParts()| ------------------------ 180 // Members initialized in |RunMainMessageLoopParts()| ------------------------
178 scoped_ptr<BrowserProcessSubThread> db_thread_; 181 scoped_ptr<BrowserProcessSubThread> db_thread_;
179 scoped_ptr<BrowserProcessSubThread> file_user_blocking_thread_; 182 scoped_ptr<BrowserProcessSubThread> file_user_blocking_thread_;
180 scoped_ptr<BrowserProcessSubThread> file_thread_; 183 scoped_ptr<BrowserProcessSubThread> file_thread_;
181 scoped_ptr<BrowserProcessSubThread> process_launcher_thread_; 184 scoped_ptr<BrowserProcessSubThread> process_launcher_thread_;
182 scoped_ptr<BrowserProcessSubThread> cache_thread_; 185 scoped_ptr<BrowserProcessSubThread> cache_thread_;
183 scoped_ptr<BrowserProcessSubThread> io_thread_; 186 scoped_ptr<BrowserProcessSubThread> io_thread_;
184 scoped_ptr<base::Thread> indexed_db_thread_; 187 scoped_ptr<base::Thread> indexed_db_thread_;
185 scoped_ptr<MemoryObserver> memory_observer_; 188 scoped_ptr<MemoryObserver> memory_observer_;
186 scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_; 189 scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_;
187 scoped_ptr<base::debug::TraceEventSystemStatsMonitor> system_stats_monitor_; 190 scoped_ptr<base::debug::TraceEventSystemStatsMonitor> system_stats_monitor_;
188 191
189 bool is_tracing_startup_; 192 bool is_tracing_startup_;
190 193
191 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 194 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
192 }; 195 };
193 196
194 } // namespace content 197 } // namespace content
195 198
196 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 199 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW
« no previous file with comments | « content/browser/android/browser_jni_registrar.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698