| OLD | NEW |
| 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 CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 virtual void PostMainMessageLoopRun() OVERRIDE; | 72 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 73 virtual void PostDestroyThreads() OVERRIDE; | 73 virtual void PostDestroyThreads() OVERRIDE; |
| 74 | 74 |
| 75 // Additional stages for ChromeBrowserMainExtraParts. These stages are called | 75 // Additional stages for ChromeBrowserMainExtraParts. These stages are called |
| 76 // in order from PreMainMessageLoopRun(). See implementation for details. | 76 // in order from PreMainMessageLoopRun(). See implementation for details. |
| 77 virtual void PreProfileInit(); | 77 virtual void PreProfileInit(); |
| 78 virtual void PostProfileInit(); | 78 virtual void PostProfileInit(); |
| 79 virtual void PreBrowserStart(); | 79 virtual void PreBrowserStart(); |
| 80 virtual void PostBrowserStart(); | 80 virtual void PostBrowserStart(); |
| 81 | 81 |
| 82 #if !defined(OS_ANDROID) | |
| 83 // Runs the PageCycler; called if the switch kVisitURLs is present. | |
| 84 virtual void RunPageCycler(); | |
| 85 #endif | |
| 86 | |
| 87 // Override this in subclasses to initialize platform specific field trials. | 82 // Override this in subclasses to initialize platform specific field trials. |
| 88 virtual void SetupPlatformFieldTrials(); | 83 virtual void SetupPlatformFieldTrials(); |
| 89 | 84 |
| 90 // Displays a warning message that we can't find any locale data files. | 85 // Displays a warning message that we can't find any locale data files. |
| 91 virtual void ShowMissingLocaleMessageBox() = 0; | 86 virtual void ShowMissingLocaleMessageBox() = 0; |
| 92 | 87 |
| 93 const content::MainFunctionParams& parameters() const { | 88 const content::MainFunctionParams& parameters() const { |
| 94 return parameters_; | 89 return parameters_; |
| 95 } | 90 } |
| 96 const CommandLine& parsed_command_line() const { | 91 const CommandLine& parsed_command_line() const { |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 bool restart_last_session_; | 198 bool restart_last_session_; |
| 204 | 199 |
| 205 // Tests can set this to true to disable restricting cookie access in the | 200 // Tests can set this to true to disable restricting cookie access in the |
| 206 // network stack, as this can only be done once. | 201 // network stack, as this can only be done once. |
| 207 static bool disable_enforcing_cookie_policies_for_tests_; | 202 static bool disable_enforcing_cookie_policies_for_tests_; |
| 208 | 203 |
| 209 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); | 204 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); |
| 210 }; | 205 }; |
| 211 | 206 |
| 212 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 207 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| OLD | NEW |