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 "content/public/browser/content_browser_client.h" | 5 #include "content/public/browser/content_browser_client.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "content/public/browser/client_certificate_delegate.h" | 9 #include "content/public/browser/client_certificate_delegate.h" |
10 #include "content/public/common/sandbox_type.h" | 10 #include "content/public/common/sandbox_type.h" |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
377 const GURL& url) { | 377 const GURL& url) { |
378 return false; | 378 return false; |
379 } | 379 } |
380 | 380 |
381 bool ContentBrowserClient::IsPluginAllowedToUseDevChannelAPIs( | 381 bool ContentBrowserClient::IsPluginAllowedToUseDevChannelAPIs( |
382 BrowserContext* browser_context, | 382 BrowserContext* browser_context, |
383 const GURL& url) { | 383 const GURL& url) { |
384 return false; | 384 return false; |
385 } | 385 } |
386 | 386 |
387 std::string ContentBrowserClient::GetPackagedMojoApplicationName() { | |
388 return "exe:content_browser"; | |
Ben Goodger (Google)
2016/03/30 22:27:50
it'd be nice eventually if these strings wound up
Ken Rockot(use gerrit already)
2016/03/31 18:55:48
Done. I only added constants for the content names
| |
389 } | |
390 | |
391 std::string ContentBrowserClient::GetMojoApplicationNameForProcess( | |
392 ProcessType type) { | |
393 switch (type) { | |
394 case PROCESS_TYPE_RENDERER: | |
395 return "exe:content_renderer"; | |
396 | |
397 default: | |
398 return std::string(); | |
399 } | |
400 } | |
401 | |
402 bool ContentBrowserClient::GetMojoApplicationManifest( | |
403 const base::StringPiece& name, | |
404 std::string* manifest_contents) { | |
405 return false; | |
406 } | |
407 | |
387 PresentationServiceDelegate* | 408 PresentationServiceDelegate* |
388 ContentBrowserClient::GetPresentationServiceDelegate( | 409 ContentBrowserClient::GetPresentationServiceDelegate( |
389 WebContents* web_contents) { | 410 WebContents* web_contents) { |
390 return nullptr; | 411 return nullptr; |
391 } | 412 } |
392 | 413 |
393 void ContentBrowserClient::OpenURL( | 414 void ContentBrowserClient::OpenURL( |
394 content::BrowserContext* browser_context, | 415 content::BrowserContext* browser_context, |
395 const content::OpenURLParams& params, | 416 const content::OpenURLParams& params, |
396 const base::Callback<void(content::WebContents*)>& callback) { | 417 const base::Callback<void(content::WebContents*)>& callback) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
437 #if defined(VIDEO_HOLE) | 458 #if defined(VIDEO_HOLE) |
438 ExternalVideoSurfaceContainer* | 459 ExternalVideoSurfaceContainer* |
439 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 460 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
440 WebContents* web_contents) { | 461 WebContents* web_contents) { |
441 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; | 462 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; |
442 return nullptr; | 463 return nullptr; |
443 } | 464 } |
444 #endif | 465 #endif |
445 | 466 |
446 } // namespace content | 467 } // namespace content |
OLD | NEW |