Chromium Code Reviews| 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_LIB_MAIN_AW_MAIN_DELEGATE_H_ | 5 #ifndef ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ |
| 6 #define ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ | 6 #define ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "android_webview/browser/aw_content_browser_client.h" | |
| 8 #include "android_webview/common/aw_content_client.h" | 9 #include "android_webview/common/aw_content_client.h" |
| 10 #include "android_webview/renderer/aw_content_renderer_client.h" | |
|
joth
2012/12/11 22:15:31
nit: fwd declare AwContentBrowserClient & RenderCl
boliu
2012/12/11 22:36:46
Done. Left over from first using straight up insta
| |
| 9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/public/app/content_main_delegate.h" | 12 #include "content/public/app/content_main_delegate.h" |
| 11 | 13 |
| 12 namespace content { | 14 namespace content { |
| 13 class BrowserMainRunner; | 15 class BrowserMainRunner; |
| 14 } | 16 } |
| 15 | 17 |
| 16 namespace android_webview { | 18 namespace android_webview { |
| 17 | 19 |
| 18 // Android WebView implementation of ContentMainDelegate. | 20 // Android WebView implementation of ContentMainDelegate. |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 29 virtual int RunProcess( | 31 virtual int RunProcess( |
| 30 const std::string& process_type, | 32 const std::string& process_type, |
| 31 const content::MainFunctionParams& main_function_params) OVERRIDE; | 33 const content::MainFunctionParams& main_function_params) OVERRIDE; |
| 32 virtual void ProcessExiting(const std::string& process_type) OVERRIDE; | 34 virtual void ProcessExiting(const std::string& process_type) OVERRIDE; |
| 33 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; | 35 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; |
| 34 virtual content::ContentRendererClient* | 36 virtual content::ContentRendererClient* |
| 35 CreateContentRendererClient() OVERRIDE; | 37 CreateContentRendererClient() OVERRIDE; |
| 36 | 38 |
| 37 scoped_ptr<content::BrowserMainRunner> browser_runner_; | 39 scoped_ptr<content::BrowserMainRunner> browser_runner_; |
| 38 android_webview::AwContentClient content_client_; | 40 android_webview::AwContentClient content_client_; |
| 41 scoped_ptr<AwContentBrowserClient> content_browser_client_; | |
| 42 scoped_ptr<AwContentRendererClient> content_renderer_client_; | |
| 39 | 43 |
| 40 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate); | 44 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate); |
| 41 }; | 45 }; |
| 42 | 46 |
| 43 } // namespace android_webview | 47 } // namespace android_webview |
| 44 | 48 |
| 45 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ | 49 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ |
| OLD | NEW |