Refactor management of overview window copy lifetime into a separate class.
[chromium-blink-merge.git] / content / shell / browser / notify_done_forwarder.h
blobe5a2f3f78007236552adfdcf5c24bef732d9dfe9
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_SHELL_BROWSER_NOTIFY_DONE_FORWARDER_H_
6 #define CONTENT_SHELL_BROWSER_NOTIFY_DONE_FORWARDER_H_
8 #include "base/basictypes.h"
9 #include "content/public/browser/web_contents_observer.h"
10 #include "content/public/browser/web_contents_user_data.h"
12 namespace content {
14 class NotifyDoneForwarder : public WebContentsObserver,
15 public WebContentsUserData<NotifyDoneForwarder> {
16 public:
17 virtual ~NotifyDoneForwarder();
19 // WebContentsObserver implementation.
20 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
22 private:
23 friend class WebContentsUserData<NotifyDoneForwarder>;
25 explicit NotifyDoneForwarder(WebContents* web_contents);
27 void OnTestFinishedInSecondaryWindow();
29 DISALLOW_COPY_AND_ASSIGN(NotifyDoneForwarder);
32 } // namespace content
34 #endif // CONTENT_SHELL_BROWSER_NOTIFY_DONE_FORWARDER_H_