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

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

Issue 10905306: Revert 156659 - Restart running apps when chrome restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSION_PREFS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // Removes a filter from an event. 282 // Removes a filter from an event.
283 void RemoveFilterFromEvent(const std::string& event_name, 283 void RemoveFilterFromEvent(const std::string& event_name,
284 const std::string& extension_id, 284 const std::string& extension_id,
285 const DictionaryValue* filter); 285 const DictionaryValue* filter);
286 286
287 // Returns the dictionary of event filters that the given extension has 287 // Returns the dictionary of event filters that the given extension has
288 // registered. 288 // registered.
289 const DictionaryValue* GetFilteredEvents( 289 const DictionaryValue* GetFilteredEvents(
290 const std::string& extension_id) const; 290 const std::string& extension_id) const;
291 291
292 // Records whether or not this extension is currently running.
293 void SetExtensionRunning(const std::string& extension_id, bool is_running);
294
295 // Returns whether or not this extension is marked as running. This is used to
296 // restart apps across browser restarts.
297 bool IsExtensionRunning(const std::string& extension_id);
298
299 // Controls the omnibox default suggestion as set by the extension. 292 // Controls the omnibox default suggestion as set by the extension.
300 ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion( 293 ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion(
301 const std::string& extension_id); 294 const std::string& extension_id);
302 void SetOmniboxDefaultSuggestion( 295 void SetOmniboxDefaultSuggestion(
303 const std::string& extension_id, 296 const std::string& extension_id,
304 const ExtensionOmniboxSuggestion& suggestion); 297 const ExtensionOmniboxSuggestion& suggestion);
305 298
306 // Returns true if the user enabled this extension to be loaded in incognito 299 // Returns true if the user enabled this extension to be loaded in incognito
307 // mode. 300 // mode.
308 bool IsIncognitoEnabled(const std::string& extension_id); 301 bool IsIncognitoEnabled(const std::string& extension_id);
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 scoped_ptr<ExtensionSorting> extension_sorting_; 565 scoped_ptr<ExtensionSorting> extension_sorting_;
573 566
574 scoped_refptr<ContentSettingsStore> content_settings_store_; 567 scoped_refptr<ContentSettingsStore> content_settings_store_;
575 568
576 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 569 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
577 }; 570 };
578 571
579 } // namespace extensions 572 } // namespace extensions
580 573
581 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 574 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/app_restore_service_factory.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698