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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 // The handler for JavaScript messages for the about:flags page. | 79 // The handler for JavaScript messages for the about:flags page. |
80 class FlashDOMHandler : public WebUIMessageHandler, | 80 class FlashDOMHandler : public WebUIMessageHandler, |
81 public CrashUploadList::Delegate, | 81 public CrashUploadList::Delegate, |
82 public content::GpuDataManagerObserver { | 82 public content::GpuDataManagerObserver { |
83 public: | 83 public: |
84 FlashDOMHandler(); | 84 FlashDOMHandler(); |
85 virtual ~FlashDOMHandler(); | 85 virtual ~FlashDOMHandler(); |
86 | 86 |
87 // WebUIMessageHandler implementation. | 87 // WebUIMessageHandler implementation. |
88 virtual void RegisterMessages() OVERRIDE; | 88 virtual void RegisterMessages() override; |
89 | 89 |
90 // CrashUploadList::Delegate implementation. | 90 // CrashUploadList::Delegate implementation. |
91 virtual void OnUploadListAvailable() OVERRIDE; | 91 virtual void OnUploadListAvailable() override; |
92 | 92 |
93 // GpuDataManager::Observer implementation. | 93 // GpuDataManager::Observer implementation. |
94 virtual void OnGpuInfoUpdate() OVERRIDE; | 94 virtual void OnGpuInfoUpdate() override; |
95 | 95 |
96 // Callback for the "requestFlashInfo" message. | 96 // Callback for the "requestFlashInfo" message. |
97 void HandleRequestFlashInfo(const base::ListValue* args); | 97 void HandleRequestFlashInfo(const base::ListValue* args); |
98 | 98 |
99 // Callback for the Flash plugin information. | 99 // Callback for the Flash plugin information. |
100 void OnGotPlugins(const std::vector<content::WebPluginInfo>& plugins); | 100 void OnGotPlugins(const std::vector<content::WebPluginInfo>& plugins); |
101 | 101 |
102 private: | 102 private: |
103 // 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 |
104 // to the page. | 104 // to the page. |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 Profile* profile = Profile::FromWebUI(web_ui); | 391 Profile* profile = Profile::FromWebUI(web_ui); |
392 content::WebUIDataSource::Add(profile, CreateFlashUIHTMLSource()); | 392 content::WebUIDataSource::Add(profile, CreateFlashUIHTMLSource()); |
393 } | 393 } |
394 | 394 |
395 // static | 395 // static |
396 base::RefCountedMemory* FlashUI::GetFaviconResourceBytes( | 396 base::RefCountedMemory* FlashUI::GetFaviconResourceBytes( |
397 ui::ScaleFactor scale_factor) { | 397 ui::ScaleFactor scale_factor) { |
398 // Use the default icon for now. | 398 // Use the default icon for now. |
399 return NULL; | 399 return NULL; |
400 } | 400 } |
OLD | NEW |