| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_MODAL_HTML_DIALOG_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_MODAL_HTML_DIALOG_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_MODAL_HTML_DIALOG_DELEGATE_H_ | 6 #define CHROME_BROWSER_MODAL_HTML_DIALOG_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
| 11 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 11 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
| 12 #include "chrome/common/ipc_message.h" | |
| 13 #include "chrome/common/notification_registrar.h" | 12 #include "chrome/common/notification_registrar.h" |
| 13 #include "ipc/ipc_message.h" |
| 14 | 14 |
| 15 // This class can only be used on the UI thread. | 15 // This class can only be used on the UI thread. |
| 16 class ModalHtmlDialogDelegate | 16 class ModalHtmlDialogDelegate |
| 17 : public HtmlDialogUIDelegate, | 17 : public HtmlDialogUIDelegate, |
| 18 public NotificationObserver { | 18 public NotificationObserver { |
| 19 public: | 19 public: |
| 20 ModalHtmlDialogDelegate(const GURL& url, | 20 ModalHtmlDialogDelegate(const GURL& url, |
| 21 int width, int height, | 21 int width, int height, |
| 22 const std::string& json_arguments, | 22 const std::string& json_arguments, |
| 23 IPC::Message* sync_result, | 23 IPC::Message* sync_result, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 49 HtmlDialogUI::HtmlDialogParams params_; | 49 HtmlDialogUI::HtmlDialogParams params_; |
| 50 | 50 |
| 51 // Once we get our reply in OnModalDialogResponse we'll need to respond to the | 51 // Once we get our reply in OnModalDialogResponse we'll need to respond to the |
| 52 // plugin using this |sync_result| pointer so we store it between calls. | 52 // plugin using this |sync_result| pointer so we store it between calls. |
| 53 IPC::Message* sync_response_; | 53 IPC::Message* sync_response_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(ModalHtmlDialogDelegate); | 55 DISALLOW_COPY_AND_ASSIGN(ModalHtmlDialogDelegate); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 #endif // CHROME_BROWSER_MODAL_HTML_DIALOG_DELEGATE_H_ | 58 #endif // CHROME_BROWSER_MODAL_HTML_DIALOG_DELEGATE_H_ |
| OLD | NEW |