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

Side by Side Diff: content/browser/site_per_process_browsertest.h

Issue 1074843002: Fix RenderFrameProxyHost leak. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lucasfix
Patch Set: Add comment suggested by Charlie Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 #include <string>
6
5 #include "content/public/test/content_browser_test.h" 7 #include "content/public/test/content_browser_test.h"
6 #include "url/gurl.h" 8 #include "url/gurl.h"
7 9
8 namespace content { 10 namespace content {
9 11
12 class FrameTreeNode;
10 class Shell; 13 class Shell;
11 14
12 class SitePerProcessBrowserTest : public ContentBrowserTest { 15 class SitePerProcessBrowserTest : public ContentBrowserTest {
13 public: 16 public:
14 SitePerProcessBrowserTest(); 17 SitePerProcessBrowserTest();
15 18
19 // Returns an alphabetically-sorted, newline-delimited list of the site
20 // instance URLs in which RenderFrameProxyHosts of |node| currently exist.
21 // TODO(nick): Make this a full-fledged tree walk.
22 static std::string DumpProxyHostSiteInstances(FrameTreeNode* node);
23
16 protected: 24 protected:
17 // Start at a data URL so each extra navigation creates a navigation entry. 25 // Start at a data URL so each extra navigation creates a navigation entry.
18 // (The first navigation will silently be classified as AUTO_SUBFRAME.) 26 // (The first navigation will silently be classified as AUTO_SUBFRAME.)
19 // TODO(creis): This won't be necessary when we can wait for LOAD_STOP. 27 // TODO(creis): This won't be necessary when we can wait for LOAD_STOP.
20 void StartFrameAtDataURL(); 28 void StartFrameAtDataURL();
21 29
22 void SetUpCommandLine(base::CommandLine* command_line) override; 30 void SetUpCommandLine(base::CommandLine* command_line) override;
23 void SetUpOnMainThread() override; 31 void SetUpOnMainThread() override;
24 }; 32 };
25 33
26 } // namespace content 34 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.cc ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698