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_FRAME_CHROME_FRAME_AUTOMATION_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
6 #define CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlwin.h> | 9 #include <atlwin.h> |
10 #include <map> | 10 #include <map> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 scoped_refptr<CFMsgDispatcher> sync_; | 100 scoped_refptr<CFMsgDispatcher> sync_; |
101 scoped_refptr<TabProxyNotificationMessageFilter> message_filter_; | 101 scoped_refptr<TabProxyNotificationMessageFilter> message_filter_; |
102 AutomationProxyCacheEntry* proxy_entry_; | 102 AutomationProxyCacheEntry* proxy_entry_; |
103 }; | 103 }; |
104 | 104 |
105 // This class contains information used for launching chrome. | 105 // This class contains information used for launching chrome. |
106 class ChromeFrameLaunchParams : // NOLINT | 106 class ChromeFrameLaunchParams : // NOLINT |
107 public base::RefCountedThreadSafe<ChromeFrameLaunchParams> { | 107 public base::RefCountedThreadSafe<ChromeFrameLaunchParams> { |
108 public: | 108 public: |
109 ChromeFrameLaunchParams(const GURL& url, const GURL& referrer, | 109 ChromeFrameLaunchParams(const GURL& url, const GURL& referrer, |
110 const FilePath& profile_path, | 110 const base::FilePath& profile_path, |
111 const std::wstring& profile_name, | 111 const std::wstring& profile_name, |
112 const std::wstring& language, | 112 const std::wstring& language, |
113 bool incognito, bool widget_mode, | 113 bool incognito, bool widget_mode, |
114 bool route_all_top_level_navigations, | 114 bool route_all_top_level_navigations, |
115 bool send_shutdown_delay_switch) | 115 bool send_shutdown_delay_switch) |
116 : launch_timeout_(kCommandExecutionTimeout), url_(url), | 116 : launch_timeout_(kCommandExecutionTimeout), url_(url), |
117 referrer_(referrer), profile_path_(profile_path), | 117 referrer_(referrer), profile_path_(profile_path), |
118 profile_name_(profile_name), language_(language), | 118 profile_name_(profile_name), language_(language), |
119 version_check_(true), incognito_mode_(incognito), | 119 version_check_(true), incognito_mode_(incognito), |
120 is_widget_mode_(widget_mode), | 120 is_widget_mode_(widget_mode), |
(...skipping 21 matching lines...) Expand all Loading... |
142 } | 142 } |
143 | 143 |
144 const GURL& referrer() const { | 144 const GURL& referrer() const { |
145 return referrer_; | 145 return referrer_; |
146 } | 146 } |
147 | 147 |
148 void set_referrer(const GURL& referrer) { | 148 void set_referrer(const GURL& referrer) { |
149 referrer_ = referrer; | 149 referrer_ = referrer; |
150 } | 150 } |
151 | 151 |
152 const FilePath& profile_path() const { | 152 const base::FilePath& profile_path() const { |
153 return profile_path_; | 153 return profile_path_; |
154 } | 154 } |
155 | 155 |
156 const std::wstring& profile_name() const { | 156 const std::wstring& profile_name() const { |
157 return profile_name_; | 157 return profile_name_; |
158 } | 158 } |
159 | 159 |
160 const std::wstring& language() const { | 160 const std::wstring& language() const { |
161 return language_; | 161 return language_; |
162 } | 162 } |
(...skipping 24 matching lines...) Expand all Loading... |
187 } | 187 } |
188 | 188 |
189 bool send_shutdown_delay_switch() const { | 189 bool send_shutdown_delay_switch() const { |
190 return send_shutdown_delay_switch_; | 190 return send_shutdown_delay_switch_; |
191 } | 191 } |
192 | 192 |
193 protected: | 193 protected: |
194 int launch_timeout_; | 194 int launch_timeout_; |
195 GURL url_; | 195 GURL url_; |
196 GURL referrer_; | 196 GURL referrer_; |
197 FilePath profile_path_; | 197 base::FilePath profile_path_; |
198 std::wstring profile_name_; | 198 std::wstring profile_name_; |
199 std::wstring language_; | 199 std::wstring language_; |
200 bool version_check_; | 200 bool version_check_; |
201 bool incognito_mode_; | 201 bool incognito_mode_; |
202 bool is_widget_mode_; | 202 bool is_widget_mode_; |
203 bool route_all_top_level_navigations_; | 203 bool route_all_top_level_navigations_; |
204 bool send_shutdown_delay_switch_; | 204 bool send_shutdown_delay_switch_; |
205 | 205 |
206 private: | 206 private: |
207 DISALLOW_COPY_AND_ASSIGN(ChromeFrameLaunchParams); | 207 DISALLOW_COPY_AND_ASSIGN(ChromeFrameLaunchParams); |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 | 527 |
528 // Set to true if Chrome Frame should tell Chrome to delay shutdown after | 528 // Set to true if Chrome Frame should tell Chrome to delay shutdown after |
529 // we break a connection. Currently used only as part of a field trial. | 529 // we break a connection. Currently used only as part of a field trial. |
530 bool send_shutdown_delay_switch_; | 530 bool send_shutdown_delay_switch_; |
531 | 531 |
532 friend class BeginNavigateContext; | 532 friend class BeginNavigateContext; |
533 friend class CreateExternalTabContext; | 533 friend class CreateExternalTabContext; |
534 }; | 534 }; |
535 | 535 |
536 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ | 536 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
OLD | NEW |