OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CONTAINER_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CONTAINER_H_ |
| 7 |
| 8 namespace content { |
| 9 class WebContents; |
| 10 } |
| 11 |
| 12 namespace android_webview { |
| 13 |
| 14 // Abstraction that contains and owns the components that we assemble to |
| 15 // make a working WebView instance. This holds a role analogous to the |
| 16 // TabContents class in the chrome module, but at a higher level of abstraction. |
| 17 class AwContentsContainer { |
| 18 public: |
| 19 // Destroying the container will tear down the sub-components of this content. |
| 20 virtual ~AwContentsContainer() {} |
| 21 |
| 22 // Ownership remains with this container. |
| 23 virtual content::WebContents* GetWebContents() = 0; |
| 24 |
| 25 protected: |
| 26 AwContentsContainer() {} |
| 27 }; |
| 28 |
| 29 } // namespace android_webview |
| 30 |
| 31 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CONTAINER_H_ |
OLD | NEW |