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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual ~FlashDOMHandler(); | 84 virtual ~FlashDOMHandler(); |
85 | 85 |
86 // WebUIMessageHandler implementation. | 86 // WebUIMessageHandler implementation. |
87 virtual void RegisterMessages() OVERRIDE; | 87 virtual void RegisterMessages() OVERRIDE; |
88 | 88 |
89 // CrashUploadList::Delegate implementation. | 89 // CrashUploadList::Delegate implementation. |
90 virtual void OnCrashListAvailable() OVERRIDE; | 90 virtual void OnCrashListAvailable() OVERRIDE; |
91 | 91 |
92 // GpuDataManager::Observer implementation. | 92 // GpuDataManager::Observer implementation. |
93 virtual void OnGpuInfoUpdate() OVERRIDE; | 93 virtual void OnGpuInfoUpdate() OVERRIDE; |
| 94 virtual void OnVideoMemoryUsageStatsUpdate( |
| 95 const content::GPUVideoMemoryUsageStats& video_memory_usage_stats) |
| 96 OVERRIDE {} |
94 | 97 |
95 // Callback for the "requestFlashInfo" message. | 98 // Callback for the "requestFlashInfo" message. |
96 void HandleRequestFlashInfo(const ListValue* args); | 99 void HandleRequestFlashInfo(const ListValue* args); |
97 | 100 |
98 // Callback for the Flash plugin information. | 101 // Callback for the Flash plugin information. |
99 void OnGotPlugins(const std::vector<webkit::WebPluginInfo>& plugins); | 102 void OnGotPlugins(const std::vector<webkit::WebPluginInfo>& plugins); |
100 | 103 |
101 private: | 104 private: |
102 // Called when we think we might have enough information to return data back | 105 // Called when we think we might have enough information to return data back |
103 // to the page. | 106 // to the page. |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 // Set up the about:flash source. | 379 // Set up the about:flash source. |
377 Profile* profile = Profile::FromWebUI(web_ui); | 380 Profile* profile = Profile::FromWebUI(web_ui); |
378 ChromeURLDataManager::AddDataSource(profile, CreateFlashUIHTMLSource()); | 381 ChromeURLDataManager::AddDataSource(profile, CreateFlashUIHTMLSource()); |
379 } | 382 } |
380 | 383 |
381 // static | 384 // static |
382 base::RefCountedMemory* FlashUI::GetFaviconResourceBytes() { | 385 base::RefCountedMemory* FlashUI::GetFaviconResourceBytes() { |
383 // Use the default icon for now. | 386 // Use the default icon for now. |
384 return NULL; | 387 return NULL; |
385 } | 388 } |
OLD | NEW |