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

Side by Side Diff: android_webview/browser/aw_content_browser_client.h

Issue 2183703005: Renderers should obtain browser InterfaceProvider by connecting to browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 #ifndef ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_
6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ 6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 // This is what AwContentBrowserClient::GetAcceptLangs uses. 24 // This is what AwContentBrowserClient::GetAcceptLangs uses.
25 static std::string GetAcceptLangsImpl(); 25 static std::string GetAcceptLangsImpl();
26 26
27 // Deprecated: use AwBrowserContext::GetDefault() instead. 27 // Deprecated: use AwBrowserContext::GetDefault() instead.
28 static AwBrowserContext* GetAwBrowserContext(); 28 static AwBrowserContext* GetAwBrowserContext();
29 29
30 AwContentBrowserClient(JniDependencyFactory* native_factory); 30 AwContentBrowserClient(JniDependencyFactory* native_factory);
31 ~AwContentBrowserClient() override; 31 ~AwContentBrowserClient() override;
32 32
33 // Allows AwBrowserMainParts to initialize a BrowserContext at the right
34 // moment during startup. AwContentBrowserClient owns the result.
35 AwBrowserContext* InitBrowserContext();
36
33 // Overriden methods from ContentBrowserClient. 37 // Overriden methods from ContentBrowserClient.
34 void AddCertificate(net::CertificateMimeType cert_type, 38 void AddCertificate(net::CertificateMimeType cert_type,
35 const void* cert_data, 39 const void* cert_data,
36 size_t cert_size, 40 size_t cert_size,
37 int render_process_id, 41 int render_process_id,
38 int render_frame_id) override; 42 int render_frame_id) override;
39 content::BrowserMainParts* CreateBrowserMainParts( 43 content::BrowserMainParts* CreateBrowserMainParts(
40 const content::MainFunctionParams& parameters) override; 44 const content::MainFunctionParams& parameters) override;
41 content::WebContentsViewDelegate* GetWebContentsViewDelegate( 45 content::WebContentsViewDelegate* GetWebContentsViewDelegate(
42 content::WebContents* web_contents) override; 46 content::WebContents* web_contents) override;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 std::unique_ptr<AwWebPreferencesPopulater> preferences_populater_; 147 std::unique_ptr<AwWebPreferencesPopulater> preferences_populater_;
144 148
145 JniDependencyFactory* native_factory_; 149 JniDependencyFactory* native_factory_;
146 150
147 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); 151 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient);
148 }; 152 };
149 153
150 } // namespace android_webview 154 } // namespace android_webview
151 155
152 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ 156 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_browser_main_parts.cc ('k') | android_webview/browser/aw_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698