| 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 #include "chrome/browser/ui/webui/flash_ui.h" | 5 #include "chrome/browser/ui/webui/flash_ui.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 void MaybeRespondToPage(); | 106 void MaybeRespondToPage(); |
| 107 | 107 |
| 108 // In certain cases we might not get called back from the GPU process so we | 108 // In certain cases we might not get called back from the GPU process so we |
| 109 // set an upper limit on the time we wait. This function gets called when the | 109 // set an upper limit on the time we wait. This function gets called when the |
| 110 // time has passed. This actually doesn't prevent the rest of the information | 110 // time has passed. This actually doesn't prevent the rest of the information |
| 111 // to appear later, the page will just reflow when more information becomes | 111 // to appear later, the page will just reflow when more information becomes |
| 112 // available. | 112 // available. |
| 113 void OnTimeout(); | 113 void OnTimeout(); |
| 114 | 114 |
| 115 // A timer to keep track of when the data fetching times out. | 115 // A timer to keep track of when the data fetching times out. |
| 116 base::OneShotTimer<FlashDOMHandler> timeout_; | 116 base::OneShotTimer timeout_; |
| 117 | 117 |
| 118 // Crash list. | 118 // Crash list. |
| 119 scoped_refptr<CrashUploadList> upload_list_; | 119 scoped_refptr<CrashUploadList> upload_list_; |
| 120 | 120 |
| 121 // Whether the list of all crashes is available. | 121 // Whether the list of all crashes is available. |
| 122 bool crash_list_available_; | 122 bool crash_list_available_; |
| 123 // Whether the page has requested data. | 123 // Whether the page has requested data. |
| 124 bool page_has_requested_data_; | 124 bool page_has_requested_data_; |
| 125 // Whether the GPU data has been collected. | 125 // Whether the GPU data has been collected. |
| 126 bool has_gpu_info_; | 126 bool has_gpu_info_; |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 Profile* profile = Profile::FromWebUI(web_ui); | 389 Profile* profile = Profile::FromWebUI(web_ui); |
| 390 content::WebUIDataSource::Add(profile, CreateFlashUIHTMLSource()); | 390 content::WebUIDataSource::Add(profile, CreateFlashUIHTMLSource()); |
| 391 } | 391 } |
| 392 | 392 |
| 393 // static | 393 // static |
| 394 base::RefCountedMemory* FlashUI::GetFaviconResourceBytes( | 394 base::RefCountedMemory* FlashUI::GetFaviconResourceBytes( |
| 395 ui::ScaleFactor scale_factor) { | 395 ui::ScaleFactor scale_factor) { |
| 396 // Use the default icon for now. | 396 // Use the default icon for now. |
| 397 return NULL; | 397 return NULL; |
| 398 } | 398 } |
| OLD | NEW |