Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: chrome/browser/ui/webui/flash_ui.cc

Issue 10854076: Add GPU memory tab to the task manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow only one outstanding vidmem refresh Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 OnVidmemUpdate(const content::GPUVidmem& vidmem) OVERRIDE {}
94 95
95 // Callback for the "requestFlashInfo" message. 96 // Callback for the "requestFlashInfo" message.
96 void HandleRequestFlashInfo(const ListValue* args); 97 void HandleRequestFlashInfo(const ListValue* args);
97 98
98 // Callback for the Flash plugin information. 99 // Callback for the Flash plugin information.
99 void OnGotPlugins(const std::vector<webkit::WebPluginInfo>& plugins); 100 void OnGotPlugins(const std::vector<webkit::WebPluginInfo>& plugins);
100 101
101 private: 102 private:
102 // Called when we think we might have enough information to return data back 103 // Called when we think we might have enough information to return data back
103 // to the page. 104 // to the page.
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 // Set up the about:flash source. 377 // Set up the about:flash source.
377 Profile* profile = Profile::FromWebUI(web_ui); 378 Profile* profile = Profile::FromWebUI(web_ui);
378 ChromeURLDataManager::AddDataSource(profile, CreateFlashUIHTMLSource()); 379 ChromeURLDataManager::AddDataSource(profile, CreateFlashUIHTMLSource());
379 } 380 }
380 381
381 // static 382 // static
382 base::RefCountedMemory* FlashUI::GetFaviconResourceBytes() { 383 base::RefCountedMemory* FlashUI::GetFaviconResourceBytes() {
383 // Use the default icon for now. 384 // Use the default icon for now.
384 return NULL; 385 return NULL;
385 } 386 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698