| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_SHELL_BROWSER_NOTIFY_DONE_FORWARDER_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_NOTIFY_DONE_FORWARDER_H_ |
| 6 #define CONTENT_SHELL_BROWSER_NOTIFY_DONE_FORWARDER_H_ | 6 #define CONTENT_SHELL_BROWSER_NOTIFY_DONE_FORWARDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
| 10 #include "content/public/browser/web_contents_user_data.h" | 10 #include "content/public/browser/web_contents_user_data.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 class NotifyDoneForwarder : public WebContentsObserver, | 14 class NotifyDoneForwarder : public WebContentsObserver, |
| 15 public WebContentsUserData<NotifyDoneForwarder> { | 15 public WebContentsUserData<NotifyDoneForwarder> { |
| 16 public: | 16 public: |
| 17 virtual ~NotifyDoneForwarder(); | 17 ~NotifyDoneForwarder() override; |
| 18 | 18 |
| 19 // WebContentsObserver implementation. | 19 // WebContentsObserver implementation. |
| 20 virtual bool OnMessageReceived(const IPC::Message& message) override; | 20 bool OnMessageReceived(const IPC::Message& message) override; |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 friend class WebContentsUserData<NotifyDoneForwarder>; | 23 friend class WebContentsUserData<NotifyDoneForwarder>; |
| 24 | 24 |
| 25 explicit NotifyDoneForwarder(WebContents* web_contents); | 25 explicit NotifyDoneForwarder(WebContents* web_contents); |
| 26 | 26 |
| 27 void OnTestFinishedInSecondaryWindow(); | 27 void OnTestFinishedInSecondaryWindow(); |
| 28 | 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(NotifyDoneForwarder); | 29 DISALLOW_COPY_AND_ASSIGN(NotifyDoneForwarder); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace content | 32 } // namespace content |
| 33 | 33 |
| 34 #endif // CONTENT_SHELL_BROWSER_NOTIFY_DONE_FORWARDER_H_ | 34 #endif // CONTENT_SHELL_BROWSER_NOTIFY_DONE_FORWARDER_H_ |
| OLD | NEW |