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

Side by Side Diff: chrome/browser/extensions/extensions_service.h

Issue 4234004: Fix some UI issues with omnibox extensions in incognito. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 10 years, 1 month 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 | Annotate | Revision Log
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_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 174 }
175 175
176 const FilePath& install_directory() const { return install_directory_; } 176 const FilePath& install_directory() const { return install_directory_; }
177 177
178 DefaultApps* default_apps() { return &default_apps_; } 178 DefaultApps* default_apps() { return &default_apps_; }
179 179
180 // Whether this extension can run in an incognito window. 180 // Whether this extension can run in an incognito window.
181 bool IsIncognitoEnabled(const Extension* extension); 181 bool IsIncognitoEnabled(const Extension* extension);
182 void SetIsIncognitoEnabled(const Extension* extension, bool enabled); 182 void SetIsIncognitoEnabled(const Extension* extension, bool enabled);
183 183
184 // Returns true if the given extension can see events and data from another
185 // sub-profile (incognito to original profile, or vice versa).
186 bool CanCrossIncognito(const Extension* extension);
187
184 // Whether this extension can inject scripts into pages with file URLs. 188 // Whether this extension can inject scripts into pages with file URLs.
185 bool AllowFileAccess(const Extension* extension); 189 bool AllowFileAccess(const Extension* extension);
186 void SetAllowFileAccess(const Extension* extension, bool allow); 190 void SetAllowFileAccess(const Extension* extension, bool allow);
187 191
188 // Initialize and start all installed extensions. 192 // Initialize and start all installed extensions.
189 void Init(); 193 void Init();
190 194
191 // Start up the extension event routers. 195 // Start up the extension event routers.
192 void InitEventRouters(); 196 void InitEventRouters();
193 197
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, 540 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest,
537 UpdatePendingExtensionAlreadyInstalled); 541 UpdatePendingExtensionAlreadyInstalled);
538 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, 542 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest,
539 InstallAppsWithUnlimtedStorage); 543 InstallAppsWithUnlimtedStorage);
540 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, 544 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest,
541 InstallAppsAndCheckStorageProtection); 545 InstallAppsAndCheckStorageProtection);
542 DISALLOW_COPY_AND_ASSIGN(ExtensionsService); 546 DISALLOW_COPY_AND_ASSIGN(ExtensionsService);
543 }; 547 };
544 548
545 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 549 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.cc ('k') | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698