Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 list of the site instance URLs | |
|
Charlie Reis
2015/04/09 16:58:08
nit:s/site instance URLs/SiteInstance site URLs/
A
| |
| 20 // 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 |
| OLD | NEW |