Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3071)

Unified Diff: content/shell/shell.h

Issue 14651029: content: Remove usage of NOTIFICATION_WEB_CONTENTS_DESTROYED from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/shell.h
diff --git a/content/shell/shell.h b/content/shell/shell.h
index f69211c8cd6aec285dec4675b9056121474d4b50..12b633c47562ae0ab9da810e27bce4dfdc8481e7 100644
--- a/content/shell/shell.h
+++ b/content/shell/shell.h
@@ -150,6 +150,8 @@ class Shell : public WebContentsDelegate,
STOP_BUTTON
};
+ class DevToolsWebContentsObserver;
+
explicit Shell(WebContents* web_contents);
// Helper to create a new Shell given a newly created WebContents.
@@ -191,6 +193,8 @@ class Shell : public WebContentsDelegate,
const NotificationSource& source,
const NotificationDetails& details) OVERRIDE;
+ void OnDevToolsWebContentsDestroyed();
+
#if defined(OS_WIN) && !defined(USE_AURA)
static ATOM RegisterWindowClass();
static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
@@ -217,6 +221,7 @@ class Shell : public WebContentsDelegate,
scoped_ptr<WebContents> web_contents_;
+ scoped_ptr<DevToolsWebContentsObserver> devtools_observer_;
ShellDevToolsFrontend* devtools_frontend_;
bool is_fullscreen_;

Powered by Google App Engine
This is Rietveld 408576698