| 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 #ifndef ANDROID_WEBVIEW_AW_BROWSER_DELEGATE_H_ | 5 #ifndef ANDROID_WEBVIEW_AW_BROWSER_DELEGATE_H_ |
| 6 #define ANDROID_WEBVIEW_AW_BROWSER_DELEGATE_H_ | 6 #define ANDROID_WEBVIEW_AW_BROWSER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 virtual content::BrowserContext* GetBrowserContext(bool incognito) = 0; | 40 virtual content::BrowserContext* GetBrowserContext(bool incognito) = 0; |
| 41 | 41 |
| 42 // Constructs and returns ownership of a WebContents instance. | 42 // Constructs and returns ownership of a WebContents instance. |
| 43 virtual content::WebContents* CreateWebContents(bool incognito) = 0; | 43 virtual content::WebContents* CreateWebContents(bool incognito) = 0; |
| 44 | 44 |
| 45 // Creates and returns ownership of a new content container instance. That | 45 // Creates and returns ownership of a new content container instance. That |
| 46 // instance will take ownership of the passed |contents|. | 46 // instance will take ownership of the passed |contents|. |
| 47 virtual AwContentsContainer* CreateContentsContainer( | 47 virtual AwContentsContainer* CreateContentsContainer( |
| 48 content::WebContents* contents) = 0; | 48 content::WebContents* contents) = 0; |
| 49 | 49 |
| 50 // As per the WebContentsDelegate method of the same name. Ownership is NOT | |
| 51 // returned; the instance must be long-lived. | |
| 52 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator() = 0; | |
| 53 | |
| 54 protected: | 50 protected: |
| 55 AwBrowserDependencyFactory(); | 51 AwBrowserDependencyFactory(); |
| 56 | 52 |
| 57 private: | 53 private: |
| 58 DISALLOW_COPY_AND_ASSIGN(AwBrowserDependencyFactory); | 54 DISALLOW_COPY_AND_ASSIGN(AwBrowserDependencyFactory); |
| 59 }; | 55 }; |
| 60 | 56 |
| 61 } // namespace android_webview | 57 } // namespace android_webview |
| 62 | 58 |
| 63 #endif // ANDROID_WEBVIEW_AW_BROWSER_DELEGATE_H_ | 59 #endif // ANDROID_WEBVIEW_AW_BROWSER_DELEGATE_H_ |
| 64 | |
| OLD | NEW |