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

Side by Side Diff: extensions/common/extension.cc

Issue 2449913002: Support WebSocket in WebRequest API. (Closed)
Patch Set: Refactor tests; add test; update documentation. Created 3 years, 10 months 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "extensions/common/extension.h" 5 #include "extensions/common/extension.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <utility> 10 #include <utility>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS; 84 URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS;
85 85
86 const int Extension::kValidBookmarkAppSchemes = URLPattern::SCHEME_HTTP | 86 const int Extension::kValidBookmarkAppSchemes = URLPattern::SCHEME_HTTP |
87 URLPattern::SCHEME_HTTPS | 87 URLPattern::SCHEME_HTTPS |
88 URLPattern::SCHEME_EXTENSION; 88 URLPattern::SCHEME_EXTENSION;
89 89
90 const int Extension::kValidHostPermissionSchemes = URLPattern::SCHEME_CHROMEUI | 90 const int Extension::kValidHostPermissionSchemes = URLPattern::SCHEME_CHROMEUI |
91 URLPattern::SCHEME_HTTP | 91 URLPattern::SCHEME_HTTP |
92 URLPattern::SCHEME_HTTPS | 92 URLPattern::SCHEME_HTTPS |
93 URLPattern::SCHEME_FILE | 93 URLPattern::SCHEME_FILE |
94 URLPattern::SCHEME_FTP; 94 URLPattern::SCHEME_FTP |
95 URLPattern::SCHEME_WS |
96 URLPattern::SCHEME_WSS;
95 97
96 // 98 //
97 // Extension 99 // Extension
98 // 100 //
99 101
100 // static 102 // static
101 scoped_refptr<Extension> Extension::Create(const base::FilePath& path, 103 scoped_refptr<Extension> Extension::Create(const base::FilePath& path,
102 Manifest::Location location, 104 Manifest::Location location,
103 const base::DictionaryValue& value, 105 const base::DictionaryValue& value,
104 int flags, 106 int flags,
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 : reason(reason), 777 : reason(reason),
776 extension(extension) {} 778 extension(extension) {}
777 779
778 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( 780 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo(
779 const Extension* extension, 781 const Extension* extension,
780 const PermissionSet& permissions, 782 const PermissionSet& permissions,
781 Reason reason) 783 Reason reason)
782 : reason(reason), extension(extension), permissions(permissions) {} 784 : reason(reason), extension(extension), permissions(permissions) {}
783 785
784 } // namespace extensions 786 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698