OLD | NEW |
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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "chrome/common/chrome_content_client.h" | 13 #include "chrome/common/chrome_content_client.h" |
14 #include "content/public/app/content_main_delegate.h" | 14 #include "content/public/app/content_main_delegate.h" |
15 | 15 |
16 template <typename> | 16 template <typename> |
17 class ScopedVector; | 17 class ScopedVector; |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class CommandLine; | 20 class CommandLine; |
21 } | 21 } |
22 | 22 |
| 23 // Exposed for testing. |
| 24 void InitializeUserDataDir(base::CommandLine* command_line); |
| 25 |
23 // Chrome implementation of ContentMainDelegate. | 26 // Chrome implementation of ContentMainDelegate. |
24 class ChromeMainDelegate : public content::ContentMainDelegate { | 27 class ChromeMainDelegate : public content::ContentMainDelegate { |
25 public: | 28 public: |
26 ChromeMainDelegate(); | 29 ChromeMainDelegate(); |
27 | 30 |
28 // |exe_entry_point_ticks| is the time at which the main function of the | 31 // |exe_entry_point_ticks| is the time at which the main function of the |
29 // executable was entered, or null if not available. | 32 // executable was entered, or null if not available. |
30 explicit ChromeMainDelegate(base::TimeTicks exe_entry_point_ticks); | 33 explicit ChromeMainDelegate(base::TimeTicks exe_entry_point_ticks); |
31 ~ChromeMainDelegate() override; | 34 ~ChromeMainDelegate() override; |
32 | 35 |
(...skipping 28 matching lines...) Expand all Loading... |
61 const std::string& process_type); | 64 const std::string& process_type); |
62 void SetUpInstallerPreferences(const base::CommandLine& command_line); | 65 void SetUpInstallerPreferences(const base::CommandLine& command_line); |
63 #endif // defined(OS_MACOSX) | 66 #endif // defined(OS_MACOSX) |
64 | 67 |
65 ChromeContentClient chrome_content_client_; | 68 ChromeContentClient chrome_content_client_; |
66 | 69 |
67 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate); | 70 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate); |
68 }; | 71 }; |
69 | 72 |
70 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_ | 73 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_ |
OLD | NEW |