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

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

Issue 1654863003: Kill --memory-metrics and on-demand Memory.Browser/RenderUsed histograms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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
« no previous file with comments | « no previous file | 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/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 void StopStartupTracingTimer(); 131 void StopStartupTracingTimer();
132 132
133 #if defined(OS_MACOSX) && !defined(OS_IOS) 133 #if defined(OS_MACOSX) && !defined(OS_IOS)
134 DeviceMonitorMac* device_monitor_mac() const { 134 DeviceMonitorMac* device_monitor_mac() const {
135 return device_monitor_mac_.get(); 135 return device_monitor_mac_.get();
136 } 136 }
137 #endif 137 #endif
138 138
139 private: 139 private:
140 class MemoryObserver;
141
142 void InitializeMainThread(); 140 void InitializeMainThread();
143 141
144 // Called just before creating the threads 142 // Called just before creating the threads
145 int PreCreateThreads(); 143 int PreCreateThreads();
146 144
147 // Create all secondary threads. 145 // Create all secondary threads.
148 int CreateThreads(); 146 int CreateThreads();
149 147
150 // Called right after the browser threads have been started. 148 // Called right after the browser threads have been started.
151 int BrowserThreadsStarted(); 149 int BrowserThreadsStarted();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 198
201 #if defined(OS_WIN) 199 #if defined(OS_WIN)
202 scoped_ptr<SystemMessageWindowWin> system_message_window_; 200 scoped_ptr<SystemMessageWindowWin> system_message_window_;
203 #endif 201 #endif
204 202
205 #if defined(OS_ANDROID) 203 #if defined(OS_ANDROID)
206 // Android implementation of ScreenOrientationDelegate 204 // Android implementation of ScreenOrientationDelegate
207 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; 205 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_;
208 #endif 206 #endif
209 207
210 scoped_ptr<MemoryObserver> memory_observer_;
211
212 // Members initialized in |InitStartupTracingForDuration()| ------------------ 208 // Members initialized in |InitStartupTracingForDuration()| ------------------
213 base::FilePath startup_trace_file_; 209 base::FilePath startup_trace_file_;
214 210
215 // This timer initiates trace file saving. 211 // This timer initiates trace file saving.
216 base::OneShotTimer startup_trace_timer_; 212 base::OneShotTimer startup_trace_timer_;
217 213
218 // Members initialized in |Init()| ------------------------------------------- 214 // Members initialized in |Init()| -------------------------------------------
219 // Destroy |parts_| before |main_message_loop_| (required) and before other 215 // Destroy |parts_| before |main_message_loop_| (required) and before other
220 // classes constructed in content (but after |main_thread_|). 216 // classes constructed in content (but after |main_thread_|).
221 scoped_ptr<BrowserMainParts> parts_; 217 scoped_ptr<BrowserMainParts> parts_;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 scoped_ptr<TimeZoneMonitor> time_zone_monitor_; 261 scoped_ptr<TimeZoneMonitor> time_zone_monitor_;
266 262
267 // DO NOT add members here. Add them to the right categories above. 263 // DO NOT add members here. Add them to the right categories above.
268 264
269 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 265 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
270 }; 266 };
271 267
272 } // namespace content 268 } // namespace content
273 269
274 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 270 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698