Make USB permissions work in the new permission message system
[chromium-blink-merge.git] / content / browser / site_per_process_browsertest.h
blob9e74bd70ee0ba37cf044174722bf85f206eb2abd
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_
6 #define CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_
8 #include <string>
10 #include "content/public/test/content_browser_test.h"
11 #include "content/test/content_browser_test_utils_internal.h"
12 #include "url/gurl.h"
14 namespace content {
16 class FrameTreeNode;
17 class Shell;
19 class SitePerProcessBrowserTest : public ContentBrowserTest {
20 public:
21 SitePerProcessBrowserTest();
23 protected:
24 // Start at a data URL so each extra navigation creates a navigation entry.
25 // (The first navigation will silently be classified as AUTO_SUBFRAME.)
26 // TODO(creis): This won't be necessary when we can wait for LOAD_STOP.
27 void StartFrameAtDataURL();
29 std::string DepictFrameTree(FrameTreeNode* node);
31 void SetUpCommandLine(base::CommandLine* command_line) override;
32 void SetUpOnMainThread() override;
34 private:
35 FrameTreeVisualizer visualizer_;
38 } // namespace content
40 #endif // CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_