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 "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 2626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2637 // from the renderer to the browser. | 2637 // from the renderer to the browser. |
2638 return IsExtensionOrSharedModuleWhitelisted(url, extension_set, | 2638 return IsExtensionOrSharedModuleWhitelisted(url, extension_set, |
2639 allowed_file_handle_origins_) || | 2639 allowed_file_handle_origins_) || |
2640 IsHostAllowedByCommandLine(url, extension_set, | 2640 IsHostAllowedByCommandLine(url, extension_set, |
2641 switches::kAllowNaClFileHandleAPI); | 2641 switches::kAllowNaClFileHandleAPI); |
2642 #else | 2642 #else |
2643 return false; | 2643 return false; |
2644 #endif | 2644 #endif |
2645 } | 2645 } |
2646 | 2646 |
| 2647 bool ChromeContentBrowserClient::AllowWebGLDebugRendererInfoForDomain( |
| 2648 const GURL& url) const { |
| 2649 // TODO(zmo): in this experimental stage, we only expose WebGL extension |
| 2650 // WEBGL_debug_renderer_info for Google domains. Once we finish the experiment |
| 2651 // and make a decision, this extension should be avaiable to all or none. |
| 2652 return google_util::IsGoogleDomainUrl( |
| 2653 url, |
| 2654 google_util::ALLOW_SUBDOMAIN, |
| 2655 google_util::DISALLOW_NON_STANDARD_PORTS); |
| 2656 } |
| 2657 |
2647 } // namespace chrome | 2658 } // namespace chrome |
OLD | NEW |