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

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

Issue 2449913002: Support WebSocket in WebRequest API. (Closed)
Patch Set: git cl format 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
« no previous file with comments | « extensions/common/api/web_request.json ('k') | extensions/common/url_pattern.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 const char Extension::kMimeType[] = "application/x-chrome-extension"; 81 const char Extension::kMimeType[] = "application/x-chrome-extension";
82 82
83 const int Extension::kValidWebExtentSchemes = 83 const int Extension::kValidWebExtentSchemes =
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 =
91 URLPattern::SCHEME_HTTP | 91 URLPattern::SCHEME_CHROMEUI | URLPattern::SCHEME_HTTP |
92 URLPattern::SCHEME_HTTPS | 92 URLPattern::SCHEME_HTTPS | URLPattern::SCHEME_FILE |
93 URLPattern::SCHEME_FILE | 93 URLPattern::SCHEME_FTP | URLPattern::SCHEME_WS | URLPattern::SCHEME_WSS;
94 URLPattern::SCHEME_FTP;
95 94
96 // 95 //
97 // Extension 96 // Extension
98 // 97 //
99 98
100 // static 99 // static
101 scoped_refptr<Extension> Extension::Create(const base::FilePath& path, 100 scoped_refptr<Extension> Extension::Create(const base::FilePath& path,
102 Manifest::Location location, 101 Manifest::Location location,
103 const base::DictionaryValue& value, 102 const base::DictionaryValue& value,
104 int flags, 103 int flags,
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 : reason(reason), 774 : reason(reason),
776 extension(extension) {} 775 extension(extension) {}
777 776
778 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( 777 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo(
779 const Extension* extension, 778 const Extension* extension,
780 const PermissionSet& permissions, 779 const PermissionSet& permissions,
781 Reason reason) 780 Reason reason)
782 : reason(reason), extension(extension), permissions(permissions) {} 781 : reason(reason), extension(extension), permissions(permissions) {}
783 782
784 } // namespace extensions 783 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/api/web_request.json ('k') | extensions/common/url_pattern.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698