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_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
299 // client page. | 299 // client page. |
300 content::WebIntentsDispatcher* intents_dispatcher_; | 300 content::WebIntentsDispatcher* intents_dispatcher_; |
301 | 301 |
302 // Weak pointer to the tab servicing the intent. Remembered in order to | 302 // Weak pointer to the tab servicing the intent. Remembered in order to |
303 // close it when a reply is sent. | 303 // close it when a reply is sent. |
304 content::WebContents* service_tab_; | 304 content::WebContents* service_tab_; |
305 | 305 |
306 // Request consumer used when asynchronously loading favicons. | 306 // Request consumer used when asynchronously loading favicons. |
307 CancelableRequestConsumerTSimple<size_t> favicon_consumer_; | 307 CancelableRequestConsumerTSimple<size_t> favicon_consumer_; |
308 | 308 |
309 // Factory for weak pointers used in callbacks for async calls to load the | |
310 // picker model. | |
groby-ooo-7-16
2012/09/21 02:25:21
FYI: weak_ptr_factory_ as a member variable is a c
Greg Billock
2012/09/21 05:10:09
The intersting bit is the part about where they're
| |
309 base::WeakPtrFactory<WebIntentPickerController> weak_ptr_factory_; | 311 base::WeakPtrFactory<WebIntentPickerController> weak_ptr_factory_; |
310 | 312 |
311 // Timer factory for minimum display time of "waiting" dialog. | 313 // Timer factory for minimum display time of "waiting" dialog. |
312 base::WeakPtrFactory<WebIntentPickerController> timer_factory_; | 314 base::WeakPtrFactory<WebIntentPickerController> timer_factory_; |
313 | 315 |
316 // Weak pointers for the dispatcher OnSendReturnMessage will not be | |
317 // cancelled on picker close. | |
318 base::WeakPtrFactory<WebIntentPickerController> dispatcher_factory_; | |
319 | |
314 // Bucket identifier for UMA reporting. Saved off in a field | 320 // Bucket identifier for UMA reporting. Saved off in a field |
315 // to avoid repeated calculation of the bucket across | 321 // to avoid repeated calculation of the bucket across |
316 // multiple UMA calls. Should be recalculated each time | 322 // multiple UMA calls. Should be recalculated each time |
317 // |intents_dispatcher_| is set. | 323 // |intents_dispatcher_| is set. |
318 web_intents::UMABucket uma_bucket_; | 324 web_intents::UMABucket uma_bucket_; |
319 | 325 |
320 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerController); | 326 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerController); |
321 }; | 327 }; |
322 | 328 |
323 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ | 329 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ |
OLD | NEW |