| 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 #include "android_webview/lib/main/aw_main_delegate.h" | 5 #include "android_webview/lib/main/aw_main_delegate.h" |
| 6 | 6 |
| 7 #include "android_webview/common/url_constants.h" | 7 #include "android_webview/common/url_constants.h" |
| 8 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" | 8 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" |
| 9 #include "android_webview/lib/aw_content_browser_client.h" | 9 #include "android_webview/lib/aw_content_browser_client.h" |
| 10 #include "android_webview/renderer/aw_render_process_observer.h" | 10 #include "android_webview/renderer/aw_render_process_observer.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 base::LazyInstance<AwContentRendererClient> | 55 base::LazyInstance<AwContentRendererClient> |
| 56 g_webview_content_renderer_client = LAZY_INSTANCE_INITIALIZER; | 56 g_webview_content_renderer_client = LAZY_INSTANCE_INITIALIZER; |
| 57 | 57 |
| 58 AwMainDelegate::AwMainDelegate() { | 58 AwMainDelegate::AwMainDelegate() { |
| 59 } | 59 } |
| 60 | 60 |
| 61 AwMainDelegate::~AwMainDelegate() { | 61 AwMainDelegate::~AwMainDelegate() { |
| 62 } | 62 } |
| 63 | 63 |
| 64 bool AwMainDelegate::BasicStartupComplete(int* exit_code) { | 64 bool AwMainDelegate::BasicStartupComplete(int* exit_code) { |
| 65 content::SetContentClient(&chrome_content_client_); | 65 content::SetContentClient(&aw_content_client_); |
| 66 | 66 |
| 67 return false; | 67 return false; |
| 68 } | 68 } |
| 69 | 69 |
| 70 void AwMainDelegate::PreSandboxStartup() { | 70 void AwMainDelegate::PreSandboxStartup() { |
| 71 chrome::RegisterPathProvider(); | 71 chrome::RegisterPathProvider(); |
| 72 | 72 |
| 73 // TODO(torne): When we have a separate renderer process, we need to handle | 73 // TODO(torne): When we have a separate renderer process, we need to handle |
| 74 // being passed open FDs for the resource paks here. | 74 // being passed open FDs for the resource paks here. |
| 75 } | 75 } |
| (...skipping 30 matching lines...) Expand all Loading... |
| 106 AwMainDelegate::CreateContentBrowserClient() { | 106 AwMainDelegate::CreateContentBrowserClient() { |
| 107 return &g_webview_content_browser_client.Get(); | 107 return &g_webview_content_browser_client.Get(); |
| 108 } | 108 } |
| 109 | 109 |
| 110 content::ContentRendererClient* | 110 content::ContentRendererClient* |
| 111 AwMainDelegate::CreateContentRendererClient() { | 111 AwMainDelegate::CreateContentRendererClient() { |
| 112 return &g_webview_content_renderer_client.Get(); | 112 return &g_webview_content_renderer_client.Get(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace android_webview | 115 } // namespace android_webview |
| OLD | NEW |