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

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

Issue 48113021: Expose WebGL extension WEBGL_debug_renderer_info to Google domains (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 <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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698