Index: ash/screensaver/test_webview.h |
diff --git a/ash/screensaver/test_webview.h b/ash/screensaver/test_webview.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f5a36a47877bffcd16ad63be4c0220c711a937e3 |
--- /dev/null |
+++ b/ash/screensaver/test_webview.h |
@@ -0,0 +1,31 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef ASH_SCREENSAVER_TEST_WEBVIEW_H_ |
+#define ASH_SCREENSAVER_TEST_WEBVIEW_H_ |
+#pragma once |
+ |
+#include "ui/views/controls/webview/webview.h" |
+ |
+namespace ash { |
+namespace test { |
+ |
+class VIEWS_EXPORT TestWebView : public views::WebView { |
+ public: |
+ explicit TestWebView(content::BrowserContext* browser_context); |
+ virtual ~TestWebView(); |
+ |
+ // Creates a TestWebContents. |
+ virtual content::WebContents* CreateWebContents( |
+ content::BrowserContext* browser_context, |
+ content::SiteInstance* site_instance) OVERRIDE; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(TestWebView); |
+}; |
+ |
+} // namespace test |
+} // namespace ash |
+ |
+#endif // ASH_SCREENSAVER_TEST_WEBVIEW_H_ |