| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifdef _MSC_VER | 7 #ifdef _MSC_VER |
| 8 // Do not warn about use of std::copy with raw pointers. | 8 // Do not warn about use of std::copy with raw pointers. |
| 9 #pragma warning(disable : 4996) | 9 #pragma warning(disable : 4996) |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include "native_client/src/trusted/plugin/plugin.h" | 12 #include "native_client/src/trusted/plugin/plugin.h" |
| (...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1862 std::string scheme = canonicalized.AsString().substr(comps.scheme.begin, | 1862 std::string scheme = canonicalized.AsString().substr(comps.scheme.begin, |
| 1863 comps.scheme.len); | 1863 comps.scheme.len); |
| 1864 if (scheme == kChromeExtensionUriScheme) | 1864 if (scheme == kChromeExtensionUriScheme) |
| 1865 return SCHEME_CHROME_EXTENSION; | 1865 return SCHEME_CHROME_EXTENSION; |
| 1866 if (scheme == kDataUriScheme) | 1866 if (scheme == kDataUriScheme) |
| 1867 return SCHEME_DATA; | 1867 return SCHEME_DATA; |
| 1868 return SCHEME_OTHER; | 1868 return SCHEME_OTHER; |
| 1869 } | 1869 } |
| 1870 | 1870 |
| 1871 } // namespace plugin | 1871 } // namespace plugin |
| OLD | NEW |