OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <list> | 5 #include <list> |
6 #include <set> | 6 #include <set> |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "content/public/browser/resource_throttle.h" | 33 #include "content/public/browser/resource_throttle.h" |
34 #include "content/public/browser/web_contents.h" | 34 #include "content/public/browser/web_contents.h" |
35 #include "content/public/common/context_menu_params.h" | 35 #include "content/public/common/context_menu_params.h" |
36 #include "content/public/common/url_constants.h" | 36 #include "content/public/common/url_constants.h" |
37 #include "content/public/test/browser_test_utils.h" | 37 #include "content/public/test/browser_test_utils.h" |
38 #include "extensions/common/switches.h" | 38 #include "extensions/common/switches.h" |
39 #include "net/dns/mock_host_resolver.h" | 39 #include "net/dns/mock_host_resolver.h" |
40 #include "net/test/embedded_test_server/embedded_test_server.h" | 40 #include "net/test/embedded_test_server/embedded_test_server.h" |
41 #include "third_party/WebKit/public/web/WebContextMenuData.h" | 41 #include "third_party/WebKit/public/web/WebContextMenuData.h" |
42 #include "third_party/WebKit/public/web/WebInputEvent.h" | 42 #include "third_party/WebKit/public/web/WebInputEvent.h" |
43 #include "webkit/glue/resource_type.h" | 43 #include "webkit/common/resource_type.h" |
44 | 44 |
45 using content::WebContents; | 45 using content::WebContents; |
46 | 46 |
47 namespace extensions { | 47 namespace extensions { |
48 | 48 |
49 namespace { | 49 namespace { |
50 | 50 |
51 // An UI-less RenderViewContextMenu. | 51 // An UI-less RenderViewContextMenu. |
52 class TestRenderViewContextMenu : public RenderViewContextMenu { | 52 class TestRenderViewContextMenu : public RenderViewContextMenu { |
53 public: | 53 public: |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 url = GURL(base::StringPrintf( | 801 url = GURL(base::StringPrintf( |
802 "http://www.a.com:%d/" | 802 "http://www.a.com:%d/" |
803 "extensions/api_test/webnavigation/crash/b.html", | 803 "extensions/api_test/webnavigation/crash/b.html", |
804 embedded_test_server()->port())); | 804 embedded_test_server()->port())); |
805 ui_test_utils::NavigateToURL(browser(), url); | 805 ui_test_utils::NavigateToURL(browser(), url); |
806 | 806 |
807 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message(); | 807 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message(); |
808 } | 808 } |
809 | 809 |
810 } // namespace extensions | 810 } // namespace extensions |
OLD | NEW |