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

Side by Side Diff: android_webview/lib/aw_browser_dependency_factory_impl.cc

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/aw_browser_dependency_factory_impl.h" 5 #include "android_webview/lib/aw_browser_dependency_factory_impl.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_content_browser_client.h" 8 #include "android_webview/browser/aw_content_browser_client.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "content/public/browser/content_browser_client.h" 10 #include "content/public/browser/content_browser_client.h"
(...skipping 14 matching lines...) Expand all
25 AwBrowserDependencyFactoryImpl::AwBrowserDependencyFactoryImpl() {} 25 AwBrowserDependencyFactoryImpl::AwBrowserDependencyFactoryImpl() {}
26 26
27 AwBrowserDependencyFactoryImpl::~AwBrowserDependencyFactoryImpl() {} 27 AwBrowserDependencyFactoryImpl::~AwBrowserDependencyFactoryImpl() {}
28 28
29 // static 29 // static
30 void AwBrowserDependencyFactoryImpl::InstallInstance() { 30 void AwBrowserDependencyFactoryImpl::InstallInstance() {
31 SetInstance(g_lazy_instance.Pointer()); 31 SetInstance(g_lazy_instance.Pointer());
32 } 32 }
33 33
34 content::BrowserContext* AwBrowserDependencyFactoryImpl::GetBrowserContext() { 34 content::BrowserContext* AwBrowserDependencyFactoryImpl::GetBrowserContext() {
35 return static_cast<AwContentBrowserClient*>( 35 return AwContentBrowserClient::GetAwBrowserContext();
36 content::GetContentClient()->browser())->GetAwBrowserContext();
37 } 36 }
38 37
39 WebContents* AwBrowserDependencyFactoryImpl::CreateWebContents() { 38 WebContents* AwBrowserDependencyFactoryImpl::CreateWebContents() {
40 return content::WebContents::Create( 39 return content::WebContents::Create(
41 content::WebContents::CreateParams(GetBrowserContext())); 40 content::WebContents::CreateParams(GetBrowserContext()));
42 } 41 }
43 42
44 } // namespace android_webview 43 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/net/aw_url_request_context_getter.cc ('k') | android_webview/native/aw_quota_manager_bridge_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698