OLD | NEW |
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_BROWSER_AUTOMATION_AUTOMATION_PROFILE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROFILE_IMPL_H_ |
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROFILE_IMPL_H_ | 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROFILE_IMPL_H_ |
7 | 7 |
8 #include "chrome/browser/net/chrome_url_request_context.h" | 8 #include "chrome/browser/net/chrome_url_request_context.h" |
9 #include "chrome/browser/profile.h" | 9 #include "chrome/browser/profile.h" |
10 #include "net/url_request/url_request_context.h" | 10 #include "net/url_request/url_request_context.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 167 } |
168 virtual bool DidLastSessionExitCleanly() { | 168 virtual bool DidLastSessionExitCleanly() { |
169 return original_profile_->DidLastSessionExitCleanly(); | 169 return original_profile_->DidLastSessionExitCleanly(); |
170 } | 170 } |
171 virtual BookmarkModel* GetBookmarkModel() { | 171 virtual BookmarkModel* GetBookmarkModel() { |
172 return original_profile_->GetBookmarkModel(); | 172 return original_profile_->GetBookmarkModel(); |
173 } | 173 } |
174 virtual DesktopNotificationService* GetDesktopNotificationService() { | 174 virtual DesktopNotificationService* GetDesktopNotificationService() { |
175 return original_profile_->GetDesktopNotificationService(); | 175 return original_profile_->GetDesktopNotificationService(); |
176 } | 176 } |
177 | |
178 #if defined(BROWSER_SYNC) | |
179 virtual ProfileSyncService* GetProfileSyncService() { | 177 virtual ProfileSyncService* GetProfileSyncService() { |
180 return original_profile_->GetProfileSyncService(); | 178 return original_profile_->GetProfileSyncService(); |
181 } | 179 } |
182 #endif | |
183 | |
184 virtual bool IsSameProfile(Profile* profile) { | 180 virtual bool IsSameProfile(Profile* profile) { |
185 return original_profile_->IsSameProfile(profile); | 181 return original_profile_->IsSameProfile(profile); |
186 } | 182 } |
187 virtual base::Time GetStartTime() const { | 183 virtual base::Time GetStartTime() const { |
188 return original_profile_->GetStartTime(); | 184 return original_profile_->GetStartTime(); |
189 } | 185 } |
190 virtual TabRestoreService* GetTabRestoreService() { | 186 virtual TabRestoreService* GetTabRestoreService() { |
191 return original_profile_->GetTabRestoreService(); | 187 return original_profile_->GetTabRestoreService(); |
192 } | 188 } |
193 virtual void ResetTabRestoreService() { | 189 virtual void ResetTabRestoreService() { |
(...skipping 24 matching lines...) Expand all Loading... |
218 protected: | 214 protected: |
219 Profile* original_profile_; | 215 Profile* original_profile_; |
220 ChromeURLRequestContextGetter* alternate_request_context_; | 216 ChromeURLRequestContextGetter* alternate_request_context_; |
221 int tab_handle_; | 217 int tab_handle_; |
222 | 218 |
223 private: | 219 private: |
224 DISALLOW_COPY_AND_ASSIGN(AutomationProfileImpl); | 220 DISALLOW_COPY_AND_ASSIGN(AutomationProfileImpl); |
225 }; | 221 }; |
226 | 222 |
227 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROFILE_IMPL_H_ | 223 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROFILE_IMPL_H_ |
OLD | NEW |