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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2706403014: Add Android implementation of navigator.getInstalledRelatedApps. (Closed)
Patch Set: Rebase. Created 3 years, 9 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
« no previous file with comments | « chrome/browser/DEPS ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 #include "net/ssl/ssl_cert_request_info.h" 195 #include "net/ssl/ssl_cert_request_info.h"
196 #include "ppapi/features/features.h" 196 #include "ppapi/features/features.h"
197 #include "ppapi/host/ppapi_host.h" 197 #include "ppapi/host/ppapi_host.h"
198 #include "printing/features/features.h" 198 #include "printing/features/features.h"
199 #include "services/image_decoder/public/interfaces/constants.mojom.h" 199 #include "services/image_decoder/public/interfaces/constants.mojom.h"
200 #include "services/preferences/public/interfaces/preferences.mojom.h" 200 #include "services/preferences/public/interfaces/preferences.mojom.h"
201 #include "services/service_manager/public/cpp/interface_provider.h" 201 #include "services/service_manager/public/cpp/interface_provider.h"
202 #include "services/service_manager/public/cpp/interface_registry.h" 202 #include "services/service_manager/public/cpp/interface_registry.h"
203 #include "services/service_manager/public/cpp/service.h" 203 #include "services/service_manager/public/cpp/service.h"
204 #include "storage/browser/fileapi/external_mount_points.h" 204 #include "storage/browser/fileapi/external_mount_points.h"
205 #include "third_party/WebKit/public/platform/modules/installedapp/installed_app_ provider.mojom.h"
205 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h" 206 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h"
206 #include "ui/base/l10n/l10n_util.h" 207 #include "ui/base/l10n/l10n_util.h"
207 #include "ui/base/resource/resource_bundle.h" 208 #include "ui/base/resource/resource_bundle.h"
208 #include "ui/resources/grit/ui_resources.h" 209 #include "ui/resources/grit/ui_resources.h"
209 #include "url/gurl.h" 210 #include "url/gurl.h"
210 #include "url/origin.h" 211 #include "url/origin.h"
211 212
212 #if defined(OS_WIN) 213 #if defined(OS_WIN)
213 #include "base/strings/string_tokenizer.h" 214 #include "base/strings/string_tokenizer.h"
214 #include "chrome/browser/chrome_browser_main_win.h" 215 #include "chrome/browser/chrome_browser_main_win.h"
(...skipping 2956 matching lines...) Expand 10 before | Expand all | Expand 10 after
3171 3172
3172 registry->AddInterface( 3173 registry->AddInterface(
3173 base::Bind(&password_manager::ContentPasswordManagerDriverFactory:: 3174 base::Bind(&password_manager::ContentPasswordManagerDriverFactory::
3174 BindSensitiveInputVisibilityService, 3175 BindSensitiveInputVisibilityService,
3175 render_frame_host)); 3176 render_frame_host));
3176 3177
3177 #if defined(OS_ANDROID) 3178 #if defined(OS_ANDROID)
3178 registry->AddInterface( 3179 registry->AddInterface(
3179 render_frame_host->GetJavaInterfaces() 3180 render_frame_host->GetJavaInterfaces()
3180 ->CreateInterfaceFactory<payments::mojom::PaymentRequest>()); 3181 ->CreateInterfaceFactory<payments::mojom::PaymentRequest>());
3182 registry->AddInterface(
3183 render_frame_host->GetJavaInterfaces()
3184 ->CreateInterfaceFactory<blink::mojom::InstalledAppProvider>());
3181 content::WebContents* web_contents = 3185 content::WebContents* web_contents =
3182 content::WebContents::FromRenderFrameHost(render_frame_host); 3186 content::WebContents::FromRenderFrameHost(render_frame_host);
3183 if (web_contents) { 3187 if (web_contents) {
3184 registry->AddInterface( 3188 registry->AddInterface(
3185 base::Bind(&ForwardShareServiceRequest, 3189 base::Bind(&ForwardShareServiceRequest,
3186 web_contents->GetJavaInterfaces()->GetWeakPtr())); 3190 web_contents->GetJavaInterfaces()->GetWeakPtr()));
3187 } 3191 }
3188 #else 3192 #else
3189 if (AreExperimentalWebPlatformFeaturesEnabled() && 3193 if (AreExperimentalWebPlatformFeaturesEnabled() &&
3190 base::FeatureList::IsEnabled(features::kWebPayments)) { 3194 base::FeatureList::IsEnabled(features::kWebPayments)) {
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
3562 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 3566 RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
3563 return variations::GetVariationParamValue( 3567 return variations::GetVariationParamValue(
3564 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; 3568 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true";
3565 } 3569 }
3566 3570
3567 // static 3571 // static
3568 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( 3572 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
3569 const storage::QuotaSettings* settings) { 3573 const storage::QuotaSettings* settings) {
3570 g_default_quota_settings = settings; 3574 g_default_quota_settings = settings;
3571 } 3575 }
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698