diff options
author | mad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-26 20:14:40 +0000 |
---|---|---|
committer | mad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-26 20:14:40 +0000 |
commit | efd4dfc2ed1aeab923b14db6ad2a9d11781ddab9 (patch) | |
tree | 5255c711b087d6a261d247d16e07ca23c6c62651 /chrome_frame/chrome_frame_delegate.h | |
parent | 71cbdf4801cec5193cec3fe813ad5d20009bd042 (diff) | |
download | chromium_src-efd4dfc2ed1aeab923b14db6ad2a9d11781ddab9.zip chromium_src-efd4dfc2ed1aeab923b14db6ad2a9d11781ddab9.tar.gz chromium_src-efd4dfc2ed1aeab923b14db6ad2a9d11781ddab9.tar.bz2 |
Added the propagation of the OnChannelError notification.
So that automation tests can tell when the communication between Chrome and Chrome Frame was cut.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1237003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42810 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_delegate.h')
-rw-r--r-- | chrome_frame/chrome_frame_delegate.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome_frame/chrome_frame_delegate.h b/chrome_frame/chrome_frame_delegate.h index d4bdae0..cc2aa95 100644 --- a/chrome_frame/chrome_frame_delegate.h +++ b/chrome_frame/chrome_frame_delegate.h @@ -8,6 +8,8 @@ #include <atlbase.h> #include <atlwin.h> #include <queue> +#include <string> +#include <vector> #include "base/file_path.h" #include "base/lock.h" @@ -34,6 +36,7 @@ class ChromeFrameDelegate { void* user_data, const std::vector<FilePath>& extension_directories) = 0; virtual void OnMessageReceived(const IPC::Message& msg) = 0; + virtual void OnChannelError() = 0; // This remains in interface since we call it if Navigate() // returns immediate error. @@ -48,7 +51,7 @@ class ChromeFrameDelegate { virtual void OnHostMoved() = 0; protected: - ~ChromeFrameDelegate() {} + virtual ~ChromeFrameDelegate() {} }; // Template specialization @@ -77,6 +80,7 @@ class ChromeFrameDelegateImpl : public ChromeFrameDelegate { const std::vector<FilePath>& extension_directories) {} virtual void OnLoadFailed(int error_code, const std::string& url) {} virtual void OnMessageReceived(const IPC::Message& msg); + virtual void OnChannelError() {} static bool IsTabMessage(const IPC::Message& message, int* tab_handle); @@ -125,8 +129,8 @@ class ChromeFrameDelegateImpl : public ChromeFrameDelegate { int cookie_id) {} }; -// This interface enables tasks to be marshalled to desired threads. -class TaskMarshaller { +// This interface enables tasks to be marshaled to desired threads. +class TaskMarshaller { // NOLINT public: virtual void PostTask(const tracked_objects::Location& from_here, Task* task) = 0; |