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/profile.h" | 8 #include "chrome/browser/profile.h" |
9 #include "net/url_request/url_request_context.h" | 9 #include "net/url_request/url_request_context.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 IPC::Message::Sender* automation_client); | 23 IPC::Message::Sender* automation_client); |
24 | 24 |
25 void set_tab_handle(int tab_handle) { | 25 void set_tab_handle(int tab_handle) { |
26 tab_handle_ = tab_handle; | 26 tab_handle_ = tab_handle; |
27 } | 27 } |
28 int tab_handle() const { | 28 int tab_handle() const { |
29 return tab_handle_; | 29 return tab_handle_; |
30 } | 30 } |
31 | 31 |
32 // Profile implementation. | 32 // Profile implementation. |
| 33 virtual ProfileId GetRuntimeId() { |
| 34 return original_profile_->GetRuntimeId(); |
| 35 } |
33 virtual FilePath GetPath() { | 36 virtual FilePath GetPath() { |
34 return original_profile_->GetPath(); | 37 return original_profile_->GetPath(); |
35 } | 38 } |
36 virtual bool IsOffTheRecord() { | 39 virtual bool IsOffTheRecord() { |
37 return original_profile_->IsOffTheRecord(); | 40 return original_profile_->IsOffTheRecord(); |
38 } | 41 } |
39 virtual Profile* GetOffTheRecordProfile() { | 42 virtual Profile* GetOffTheRecordProfile() { |
40 return original_profile_->GetOffTheRecordProfile(); | 43 return original_profile_->GetOffTheRecordProfile(); |
41 } | 44 } |
42 virtual void DestroyOffTheRecordProfile() { | 45 virtual void DestroyOffTheRecordProfile() { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 Profile* original_profile_; | 210 Profile* original_profile_; |
208 scoped_refptr<net::CookieStore> alternate_cookie_store_; | 211 scoped_refptr<net::CookieStore> alternate_cookie_store_; |
209 scoped_refptr<URLRequestContext> alternate_reqeust_context_; | 212 scoped_refptr<URLRequestContext> alternate_reqeust_context_; |
210 int tab_handle_; | 213 int tab_handle_; |
211 | 214 |
212 private: | 215 private: |
213 DISALLOW_COPY_AND_ASSIGN(AutomationProfileImpl); | 216 DISALLOW_COPY_AND_ASSIGN(AutomationProfileImpl); |
214 }; | 217 }; |
215 | 218 |
216 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROFILE_IMPL_H_ | 219 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROFILE_IMPL_H_ |
OLD | NEW |