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

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

Issue 10983004: Fix warnings when compiling with clang (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync try Created 8 years, 3 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
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 // TODO(joth): Componentize or remove chrome/... dependencies. 7 // TODO(joth): Componentize or remove chrome/... dependencies.
8 #include "android_webview/browser/net/aw_network_delegate.h" 8 #include "android_webview/browser/net/aw_network_delegate.h"
9 #include "android_webview/native/aw_contents_container.h" 9 #include "android_webview/native/aw_contents_container.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/profiles/profile_manager.h" 16 #include "chrome/browser/profiles/profile_manager.h"
17 #include "chrome/browser/ui/app_modal_dialogs/javascript_dialog_creator.h"
18 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
19 #include "ipc/ipc_message.h" 18 #include "ipc/ipc_message.h"
20 #include "net/url_request/url_request_context.h" 19 #include "net/url_request/url_request_context.h"
21 #include "net/url_request/url_request_context_getter.h" 20 #include "net/url_request/url_request_context_getter.h"
22 21
23 using content::BrowserContext; 22 using content::BrowserContext;
24 using content::WebContents; 23 using content::WebContents;
25 24
26 namespace android_webview { 25 namespace android_webview {
27 26
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 WebContents* AwBrowserDependencyFactoryImpl::CreateWebContents(bool incognito) { 94 WebContents* AwBrowserDependencyFactoryImpl::CreateWebContents(bool incognito) {
96 return content::WebContents::Create( 95 return content::WebContents::Create(
97 GetBrowserContext(incognito), 0, MSG_ROUTING_NONE, 0); 96 GetBrowserContext(incognito), 0, MSG_ROUTING_NONE, 0);
98 } 97 }
99 98
100 AwContentsContainer* AwBrowserDependencyFactoryImpl::CreateContentsContainer( 99 AwContentsContainer* AwBrowserDependencyFactoryImpl::CreateContentsContainer(
101 content::WebContents* contents) { 100 content::WebContents* contents) {
102 return new WebContentsWrapper(contents); 101 return new WebContentsWrapper(contents);
103 } 102 }
104 103
105 content::JavaScriptDialogCreator*
106 AwBrowserDependencyFactoryImpl::GetJavaScriptDialogCreator() {
107 return GetJavaScriptDialogCreatorInstance();
108 }
109
110 } // namespace android_webview 104 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/lib/aw_browser_dependency_factory_impl.h ('k') | content/browser/android/cookie_getter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698