| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBUI_HUNG_RENDERER_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_HUNG_RENDERER_DIALOG_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_HUNG_RENDERER_DIALOG_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_HUNG_RENDERER_DIALOG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 // Dialog handler that handles calls from the JS WebUI code to get the details | 96 // Dialog handler that handles calls from the JS WebUI code to get the details |
| 97 // of the list of frozen tabs. | 97 // of the list of frozen tabs. |
| 98 class HungRendererDialogHandler : public WebUIMessageHandler { | 98 class HungRendererDialogHandler : public WebUIMessageHandler { |
| 99 public: | 99 public: |
| 100 explicit HungRendererDialogHandler(TabContents* contents); | 100 explicit HungRendererDialogHandler(TabContents* contents); |
| 101 | 101 |
| 102 void CloseDialog(); | 102 void CloseDialog(); |
| 103 | 103 |
| 104 // Overridden from WebUIMessageHandler | 104 // Overridden from WebUIMessageHandler |
| 105 virtual void RegisterMessages(); | 105 virtual void RegisterMessages() OVERRIDE; |
| 106 | 106 |
| 107 private: | 107 private: |
| 108 void RequestTabContentsList(const base::ListValue* args); | 108 void RequestTabContentsList(const base::ListValue* args); |
| 109 | 109 |
| 110 // The tab contents. | 110 // The tab contents. |
| 111 TabContents* contents_; | 111 TabContents* contents_; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(HungRendererDialogHandler); | 113 DISALLOW_COPY_AND_ASSIGN(HungRendererDialogHandler); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 | 116 |
| 117 #endif // CHROME_BROWSER_UI_WEBUI_HUNG_RENDERER_DIALOG_H_ | 117 #endif // CHROME_BROWSER_UI_WEBUI_HUNG_RENDERER_DIALOG_H_ |
| 118 | 118 |
| OLD | NEW |