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

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

Issue 7645033: Add offline_enabled field in manifest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/common/extensions/extension.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 const ExtensionIconSet& icons() const { return icons_; } 525 const ExtensionIconSet& icons() const { return icons_; }
526 const base::DictionaryValue* manifest_value() const { 526 const base::DictionaryValue* manifest_value() const {
527 return manifest_value_.get(); 527 return manifest_value_.get();
528 } 528 }
529 const std::string default_locale() const { return default_locale_; } 529 const std::string default_locale() const { return default_locale_; }
530 const URLOverrideMap& GetChromeURLOverrides() const { 530 const URLOverrideMap& GetChromeURLOverrides() const {
531 return chrome_url_overrides_; 531 return chrome_url_overrides_;
532 } 532 }
533 const std::string omnibox_keyword() const { return omnibox_keyword_; } 533 const std::string omnibox_keyword() const { return omnibox_keyword_; }
534 bool incognito_split_mode() const { return incognito_split_mode_; } 534 bool incognito_split_mode() const { return incognito_split_mode_; }
535 bool offline_enabled() const { return offline_enabled_; }
535 const std::vector<TtsVoice>& tts_voices() const { return tts_voices_; } 536 const std::vector<TtsVoice>& tts_voices() const { return tts_voices_; }
536 537
537 bool wants_file_access() const { return wants_file_access_; } 538 bool wants_file_access() const { return wants_file_access_; }
538 int creation_flags() const { return creation_flags_; } 539 int creation_flags() const { return creation_flags_; }
539 bool from_webstore() const { return (creation_flags_ & FROM_WEBSTORE) != 0; } 540 bool from_webstore() const { return (creation_flags_ & FROM_WEBSTORE) != 0; }
540 bool from_bookmark() const { return (creation_flags_ & FROM_BOOKMARK) != 0; } 541 bool from_bookmark() const { return (creation_flags_ & FROM_BOOKMARK) != 0; }
541 542
542 const std::string& content_security_policy() const { 543 const std::string& content_security_policy() const {
543 return content_security_policy_; 544 return content_security_policy_;
544 } 545 }
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 // The absolute path to the directory the extension is stored in. 702 // The absolute path to the directory the extension is stored in.
702 FilePath path_; 703 FilePath path_;
703 704
704 // Default locale for fall back. Can be empty if extension is not localized. 705 // Default locale for fall back. Can be empty if extension is not localized.
705 std::string default_locale_; 706 std::string default_locale_;
706 707
707 // If true, a separate process will be used for the extension in incognito 708 // If true, a separate process will be used for the extension in incognito
708 // mode. 709 // mode.
709 bool incognito_split_mode_; 710 bool incognito_split_mode_;
710 711
712 // Whether the extension or app should be enabled when offline.
713 bool offline_enabled_;
714
711 // Defines the set of URLs in the extension's web content. 715 // Defines the set of URLs in the extension's web content.
712 URLPatternSet extent_; 716 URLPatternSet extent_;
713 717
714 // The extension runtime data. 718 // The extension runtime data.
715 mutable base::Lock runtime_data_lock_; 719 mutable base::Lock runtime_data_lock_;
716 mutable RuntimeData runtime_data_; 720 mutable RuntimeData runtime_data_;
717 721
718 // The set of permissions the extension can request at runtime. 722 // The set of permissions the extension can request at runtime.
719 scoped_refptr<const ExtensionPermissionSet> optional_permission_set_; 723 scoped_refptr<const ExtensionPermissionSet> optional_permission_set_;
720 724
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 // only contain the removed permissions. 932 // only contain the removed permissions.
929 const ExtensionPermissionSet* permissions; 933 const ExtensionPermissionSet* permissions;
930 934
931 UpdatedExtensionPermissionsInfo( 935 UpdatedExtensionPermissionsInfo(
932 const Extension* extension, 936 const Extension* extension,
933 const ExtensionPermissionSet* permissions, 937 const ExtensionPermissionSet* permissions,
934 Reason reason); 938 Reason reason);
935 }; 939 };
936 940
937 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 941 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698