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

Unified Diff: chrome/browser/devtools/devtools_window.h

Issue 12431011: Avoid retaining the pointer to inspected WebContents in DevToolsWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_window.h
diff --git a/chrome/browser/devtools/devtools_window.h b/chrome/browser/devtools/devtools_window.h
index 8d8141eee16cfb3d5faf9f17d9ff6e14b44b75e3..8c08dca3f91afb363d5613bfef4df3a109804528 100644
--- a/chrome/browser/devtools/devtools_window.h
+++ b/chrome/browser/devtools/devtools_window.h
@@ -198,8 +198,12 @@ class DevToolsWindow : private content::NotificationObserver,
static std::string SideToString(DevToolsDockSide dock_side);
static DevToolsDockSide SideFromString(const std::string& dock_side);
+ content::WebContents* GetInspectedWebContents();
+
+ class InspectedWebContentsObserver;
+ scoped_ptr<InspectedWebContentsObserver> inspected_contents_observer_;
+
Profile* profile_;
- content::WebContents* inspected_web_contents_;
content::WebContents* web_contents_;
Browser* browser_;
DevToolsDockSide dock_side_;
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698