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

Unified Diff: android_webview/native/aw_contents_container.h

Issue 10855171: Add a test runner for android_webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address feedback Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/native/intercepted_request_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents_container.h
diff --git a/android_webview/native/aw_contents_container.h b/android_webview/native/aw_contents_container.h
new file mode 100644
index 0000000000000000000000000000000000000000..8ab4631e3d4edabcbd67a31790d0fc68885c9306
--- /dev/null
+++ b/android_webview/native/aw_contents_container.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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CONTAINER_H_
+#define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CONTAINER_H_
+
+namespace content {
+class WebContents;
+}
+
+namespace android_webview {
+
+// Abstraction that contains and owns the components that we assemble to
+// make a working WebView instance. This holds a role analogous to the
+// TabContents class in the chrome module, but at a higher level of abstraction.
+class AwContentsContainer {
+ public:
+ // Destroying the container will tear down the sub-components of this content.
+ virtual ~AwContentsContainer() {}
+
+ // Ownership remains with this container.
+ virtual content::WebContents* GetWebContents() = 0;
+
+ protected:
+ AwContentsContainer() {}
+};
+
+} // namespace android_webview
+
+#endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CONTAINER_H_
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/native/intercepted_request_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698