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/renderer/chrome_content_renderer_client.h" | 5 #include "chrome/renderer/chrome_content_renderer_client.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/common/extensions/extension.h" | 8 #include "chrome/common/extensions/extension.h" |
9 #include "chrome/common/extensions/extension_builder.h" | 9 #include "chrome/common/extensions/extension_builder.h" |
10 #include "content/public/common/webplugininfo.h" | 10 #include "content/public/common/webplugininfo.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 namespace { | 27 namespace { |
28 const bool kNaClRestricted = false; | 28 const bool kNaClRestricted = false; |
29 const bool kNaClUnrestricted = true; | 29 const bool kNaClUnrestricted = true; |
30 const bool kExtensionRestricted = false; | 30 const bool kExtensionRestricted = false; |
31 const bool kExtensionUnrestricted = true; | 31 const bool kExtensionUnrestricted = true; |
32 const bool kExtensionNotFromWebStore = false; | 32 const bool kExtensionNotFromWebStore = false; |
33 const bool kExtensionFromWebStore = true; | 33 const bool kExtensionFromWebStore = true; |
34 const bool kNotHostedApp = false; | 34 const bool kNotHostedApp = false; |
35 const bool kHostedApp = true; | 35 const bool kHostedApp = true; |
36 | 36 |
37 const char kNaClMimeType[] = "application/x-nacl"; | |
38 const char kExtensionUrl[] = "chrome-extension://extension_id/background.html"; | 37 const char kExtensionUrl[] = "chrome-extension://extension_id/background.html"; |
39 | 38 |
40 const char kPhotosAppURL1[] = "https://foo.plus.google.com"; | 39 const char kPhotosAppURL1[] = "https://foo.plus.google.com"; |
41 const char kPhotosAppURL2[] = "https://foo.plus.sandbox.google.com"; | 40 const char kPhotosAppURL2[] = "https://foo.plus.sandbox.google.com"; |
42 const char kPhotosManifestURL1[] = "https://ssl.gstatic.com/s2/oz/nacl/foo"; | 41 const char kPhotosManifestURL1[] = "https://ssl.gstatic.com/s2/oz/nacl/foo"; |
43 const char kPhotosManifestURL2[] = "https://ssl.gstatic.com/photos/nacl/foo"; | 42 const char kPhotosManifestURL2[] = "https://ssl.gstatic.com/photos/nacl/foo"; |
44 | 43 |
45 const char kChatAppURL1[] = "https://foo.talkgadget.google.com"; | 44 const char kChatAppURL1[] = "https://foo.talkgadget.google.com"; |
46 const char kChatAppURL2[] = "https://foo.talk.google.com"; | 45 const char kChatAppURL2[] = "https://foo.talk.google.com"; |
47 const char kChatManifestURL[] = "https://ssl.gstatic.com/chat/apps/fx"; | 46 const char kChatManifestURL[] = "https://ssl.gstatic.com/chat/apps/fx"; |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 EXPECT_FALSE(test.AllowPepperMediaStreamAPI(GURL(kChatAppURL1))); | 372 EXPECT_FALSE(test.AllowPepperMediaStreamAPI(GURL(kChatAppURL1))); |
374 EXPECT_FALSE(test.AllowPepperMediaStreamAPI(GURL(kChatAppURL2))); | 373 EXPECT_FALSE(test.AllowPepperMediaStreamAPI(GURL(kChatAppURL2))); |
375 #endif | 374 #endif |
376 EXPECT_FALSE(test.AllowPepperMediaStreamAPI( | 375 EXPECT_FALSE(test.AllowPepperMediaStreamAPI( |
377 GURL("http://talkgadget.google.com"))); | 376 GURL("http://talkgadget.google.com"))); |
378 EXPECT_FALSE(test.AllowPepperMediaStreamAPI( | 377 EXPECT_FALSE(test.AllowPepperMediaStreamAPI( |
379 GURL("https://talkgadget.evil.com"))); | 378 GURL("https://talkgadget.evil.com"))); |
380 } | 379 } |
381 | 380 |
382 } // namespace chrome | 381 } // namespace chrome |
OLD | NEW |