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

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

Issue 10875027: Restart running apps when chrome restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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
292 // Controls the omnibox default suggestion as set by the extension. 299 // Controls the omnibox default suggestion as set by the extension.
293 ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion( 300 ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion(
294 const std::string& extension_id); 301 const std::string& extension_id);
295 void SetOmniboxDefaultSuggestion( 302 void SetOmniboxDefaultSuggestion(
296 const std::string& extension_id, 303 const std::string& extension_id,
297 const ExtensionOmniboxSuggestion& suggestion); 304 const ExtensionOmniboxSuggestion& suggestion);
298 305
299 // Returns true if the user enabled this extension to be loaded in incognito 306 // Returns true if the user enabled this extension to be loaded in incognito
300 // mode. 307 // mode.
301 bool IsIncognitoEnabled(const std::string& extension_id); 308 bool IsIncognitoEnabled(const std::string& extension_id);
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 scoped_ptr<ExtensionSorting> extension_sorting_; 578 scoped_ptr<ExtensionSorting> extension_sorting_;
572 579
573 scoped_refptr<ContentSettingsStore> content_settings_store_; 580 scoped_refptr<ContentSettingsStore> content_settings_store_;
574 581
575 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 582 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
576 }; 583 };
577 584
578 } // namespace extensions 585 } // namespace extensions
579 586
580 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 587 #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