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

Side by Side Diff: chrome/common/extensions/extension.h

Issue 567037: Initial work on making extensions work in incognito mode. (Closed)
Patch Set: added experimental requirement Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 // Max size (both dimensions) for browser and page actions. 73 // Max size (both dimensions) for browser and page actions.
74 static const int kPageActionIconMaxSize; 74 static const int kPageActionIconMaxSize;
75 static const int kBrowserActionIconMaxSize; 75 static const int kBrowserActionIconMaxSize;
76 76
77 // Each permission is a module that the extension is permitted to use. 77 // Each permission is a module that the extension is permitted to use.
78 static const char* kTabPermission; 78 static const char* kTabPermission;
79 static const char* kBookmarkPermission; 79 static const char* kBookmarkPermission;
80 static const char* kNotificationPermission; 80 static const char* kNotificationPermission;
81 static const char* kExperimentalPermission; 81 static const char* kExperimentalPermission;
82 static const char* kIncognitoPermission;
82 83
83 static const char* kPermissionNames[]; 84 static const char* kPermissionNames[];
84 static const size_t kNumPermissions; 85 static const size_t kNumPermissions;
85 86
86 // An NPAPI plugin included in the extension. 87 // An NPAPI plugin included in the extension.
87 struct PluginInfo { 88 struct PluginInfo {
88 FilePath path; // Path to the plugin. 89 FilePath path; // Path to the plugin.
89 bool is_public; // False if only this extension can load this plugin. 90 bool is_public; // False if only this extension can load this plugin.
90 }; 91 };
91 92
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 scoped_ptr<DictionaryValue> extension_manifest; 466 scoped_ptr<DictionaryValue> extension_manifest;
466 std::string extension_id; 467 std::string extension_id;
467 FilePath extension_path; 468 FilePath extension_path;
468 Extension::Location extension_location; 469 Extension::Location extension_location;
469 470
470 private: 471 private:
471 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); 472 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo);
472 }; 473 };
473 474
474 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 475 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/browser_actions_container.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698