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

Side by Side Diff: chrome/common/temp_scaffolding_stubs.h

Issue 18248: CommandLine API rework (Closed)
Patch Set: fixes Created 11 years, 11 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 | « chrome/common/pref_service_uitest.cc ('k') | chrome/common/temp_scaffolding_stubs.cpp » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_COMMON_TEMP_SCAFFOLDING_STUBS_H_ 5 #ifndef CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
6 #define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ 6 #define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
7 7
8 // This file provides declarations and stub definitions for classes we encouter 8 // This file provides declarations and stub definitions for classes we encouter
9 // during the porting effort. It is not meant to be perminent, and classes will 9 // during the porting effort. It is not meant to be perminent, and classes will
10 // be removed from here as they are fleshed out more completely. 10 // be removed from here as they are fleshed out more completely.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 static bool GetLanguage(std::wstring* language) { return false; } 76 static bool GetLanguage(std::wstring* language) { return false; }
77 static bool GetBrand(std::wstring* brand) { return false; } 77 static bool GetBrand(std::wstring* brand) { return false; }
78 static bool GetReferral(std::wstring* referral) { return false; } 78 static bool GetReferral(std::wstring* referral) { return false; }
79 static bool ClearReferral() { return false; } 79 static bool ClearReferral() { return false; }
80 private: 80 private:
81 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); 81 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings);
82 }; 82 };
83 83
84 class BrowserProcessImpl : public BrowserProcess { 84 class BrowserProcessImpl : public BrowserProcess {
85 public: 85 public:
86 BrowserProcessImpl(CommandLine& command_line); 86 BrowserProcessImpl(const CommandLine& command_line);
87 virtual ~BrowserProcessImpl(); 87 virtual ~BrowserProcessImpl();
88 88
89 virtual void EndSession() { } 89 virtual void EndSession() { }
90 virtual ResourceDispatcherHost* resource_dispatcher_host() { return NULL; } 90 virtual ResourceDispatcherHost* resource_dispatcher_host() { return NULL; }
91 virtual MetricsService* metrics_service(); 91 virtual MetricsService* metrics_service();
92 virtual ProfileManager* profile_manager(); 92 virtual ProfileManager* profile_manager();
93 virtual PrefService* local_state(); 93 virtual PrefService* local_state();
94 virtual DebuggerWrapper* debugger_wrapper() { return NULL; } 94 virtual DebuggerWrapper* debugger_wrapper() { return NULL; }
95 virtual ClipboardService* clipboard_service() { return NULL; } 95 virtual ClipboardService* clipboard_service() { return NULL; }
96 virtual base::Thread* io_thread() { return NULL; } 96 virtual base::Thread* io_thread() { return NULL; }
(...skipping 22 matching lines...) Expand all
119 scoped_ptr<PrefService> local_state_; 119 scoped_ptr<PrefService> local_state_;
120 bool created_metrics_service_; 120 bool created_metrics_service_;
121 scoped_ptr<MetricsService> metrics_service_; 121 scoped_ptr<MetricsService> metrics_service_;
122 bool created_profile_manager_; 122 bool created_profile_manager_;
123 scoped_ptr<ProfileManager> profile_manager_; 123 scoped_ptr<ProfileManager> profile_manager_;
124 std::wstring locale_; 124 std::wstring locale_;
125 }; 125 };
126 126
127 class FirstRunBrowserProcess : public BrowserProcessImpl { 127 class FirstRunBrowserProcess : public BrowserProcessImpl {
128 public: 128 public:
129 FirstRunBrowserProcess(CommandLine& command_line) 129 FirstRunBrowserProcess(const CommandLine& command_line)
130 : BrowserProcessImpl(command_line) { 130 : BrowserProcessImpl(command_line) {
131 } 131 }
132 virtual ~FirstRunBrowserProcess() { } 132 virtual ~FirstRunBrowserProcess() { }
133 virtual GoogleURLTracker* google_url_tracker() { return NULL; } 133 virtual GoogleURLTracker* google_url_tracker() { return NULL; }
134 private: 134 private:
135 DISALLOW_COPY_AND_ASSIGN(FirstRunBrowserProcess); 135 DISALLOW_COPY_AND_ASSIGN(FirstRunBrowserProcess);
136 }; 136 };
137 137
138 class UserDataManager { 138 class UserDataManager {
139 public: 139 public:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 namespace browser_shutdown { 186 namespace browser_shutdown {
187 void ReadLastShutdownInfo(); 187 void ReadLastShutdownInfo();
188 void Shutdown(); 188 void Shutdown();
189 } 189 }
190 190
191 void OpenFirstRunDialog(Profile* profile); 191 void OpenFirstRunDialog(Profile* profile);
192 192
193 void InstallJankometer(const CommandLine&); 193 void InstallJankometer(const CommandLine&);
194 194
195 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ 195 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
OLDNEW
« no previous file with comments | « chrome/common/pref_service_uitest.cc ('k') | chrome/common/temp_scaffolding_stubs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698