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

Side by Side Diff: chrome/app/chrome_main_delegate.h

Issue 679273002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « chrome/app/chrome_crash_reporter_client.h ('k') | chrome/common/crash_keys_unittest.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_APP_CHROME_MAIN_DELEGATE_H_ 5 #ifndef CHROME_APP_CHROME_MAIN_DELEGATE_H_
6 #define CHROME_APP_CHROME_MAIN_DELEGATE_H_ 6 #define CHROME_APP_CHROME_MAIN_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/metrics/stats_counters.h" 9 #include "base/metrics/stats_counters.h"
10 #include "chrome/common/chrome_content_client.h" 10 #include "chrome/common/chrome_content_client.h"
(...skipping 20 matching lines...) Expand all
31 int RunProcess( 31 int RunProcess(
32 const std::string& process_type, 32 const std::string& process_type,
33 const content::MainFunctionParams& main_function_params) override; 33 const content::MainFunctionParams& main_function_params) override;
34 void ProcessExiting(const std::string& process_type) override; 34 void ProcessExiting(const std::string& process_type) override;
35 #if defined(OS_MACOSX) 35 #if defined(OS_MACOSX)
36 bool ProcessRegistersWithSystemProcess( 36 bool ProcessRegistersWithSystemProcess(
37 const std::string& process_type) override; 37 const std::string& process_type) override;
38 bool ShouldSendMachPort(const std::string& process_type) override; 38 bool ShouldSendMachPort(const std::string& process_type) override;
39 bool DelaySandboxInitialization(const std::string& process_type) override; 39 bool DelaySandboxInitialization(const std::string& process_type) override;
40 #elif defined(OS_POSIX) && !defined(OS_ANDROID) 40 #elif defined(OS_POSIX) && !defined(OS_ANDROID)
41 virtual void ZygoteStarting( 41 void ZygoteStarting(
42 ScopedVector<content::ZygoteForkDelegate>* delegates) override; 42 ScopedVector<content::ZygoteForkDelegate>* delegates) override;
43 virtual void ZygoteForked() override; 43 void ZygoteForked() override;
44 #elif defined(OS_WIN) 44 #elif defined(OS_WIN)
45 virtual bool ShouldEnableTerminationOnHeapCorruption() override; 45 virtual bool ShouldEnableTerminationOnHeapCorruption() override;
46 #endif 46 #endif
47 47
48 content::ContentBrowserClient* CreateContentBrowserClient() override; 48 content::ContentBrowserClient* CreateContentBrowserClient() override;
49 content::ContentPluginClient* CreateContentPluginClient() override; 49 content::ContentPluginClient* CreateContentPluginClient() override;
50 content::ContentRendererClient* CreateContentRendererClient() override; 50 content::ContentRendererClient* CreateContentRendererClient() override;
51 content::ContentUtilityClient* CreateContentUtilityClient() override; 51 content::ContentUtilityClient* CreateContentUtilityClient() override;
52 52
53 #if defined(OS_MACOSX) 53 #if defined(OS_MACOSX)
54 void InitMacCrashReporter(const base::CommandLine& command_line, 54 void InitMacCrashReporter(const base::CommandLine& command_line,
55 const std::string& process_type); 55 const std::string& process_type);
56 #endif // defined(OS_MACOSX) 56 #endif // defined(OS_MACOSX)
57 57
58 ChromeContentClient chrome_content_client_; 58 ChromeContentClient chrome_content_client_;
59 59
60 // startup_timer_ will hold a reference to stats_counter_timer_. Therefore, 60 // startup_timer_ will hold a reference to stats_counter_timer_. Therefore,
61 // the declaration order of these variables matters. Changing this order will 61 // the declaration order of these variables matters. Changing this order will
62 // cause startup_timer_ to be freed before stats_counter_timer_, leaving a 62 // cause startup_timer_ to be freed before stats_counter_timer_, leaving a
63 // dangling reference. 63 // dangling reference.
64 scoped_ptr<base::StatsCounterTimer> stats_counter_timer_; 64 scoped_ptr<base::StatsCounterTimer> stats_counter_timer_;
65 scoped_ptr<base::StatsScope<base::StatsCounterTimer> > startup_timer_; 65 scoped_ptr<base::StatsScope<base::StatsCounterTimer> > startup_timer_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate); 67 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate);
68 }; 68 };
69 69
70 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_ 70 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/app/chrome_crash_reporter_client.h ('k') | chrome/common/crash_keys_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698