Index: chrome/common/extensions/extension.h |
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h |
index 215912e26891398f51da5a237fa1c9a1c2296439..19c9cbec06ea012b391b0015d84173820130bdf6 100644 |
--- a/chrome/common/extensions/extension.h |
+++ b/chrome/common/extensions/extension.h |
@@ -25,6 +25,7 @@ |
#include "chrome/common/extensions/url_pattern_set.h" |
#include "googleurl/src/gurl.h" |
#include "ui/gfx/size.h" |
+#include "webkit/glue/web_intent_service_data.h" |
class ExtensionAction; |
class ExtensionResource; |
@@ -533,6 +534,7 @@ class Extension : public base::RefCountedThreadSafe<Extension> { |
bool incognito_split_mode() const { return incognito_split_mode_; } |
bool offline_enabled() const { return offline_enabled_; } |
const std::vector<TtsVoice>& tts_voices() const { return tts_voices_; } |
+ const std::vector<WebIntentServiceData>& intents() const { return intents_; } |
bool wants_file_access() const { return wants_file_access_; } |
int creation_flags() const { return creation_flags_; } |
@@ -641,6 +643,8 @@ class Extension : public base::RefCountedThreadSafe<Extension> { |
std::string* error); |
bool LoadAppIsolation(const base::DictionaryValue* manifest, |
std::string* error); |
+ bool LoadWebIntents(const base::DictionaryValue& manifest, |
+ std::string* error); |
bool EnsureNotHybridApp(const base::DictionaryValue* manifest, |
std::string* error); |
@@ -843,6 +847,9 @@ class Extension : public base::RefCountedThreadSafe<Extension> { |
// List of text-to-speech voices that this extension provides, if any. |
std::vector<TtsVoice> tts_voices_; |
+ // List of intents that this extension provides, if any. |
+ std::vector<WebIntentServiceData> intents_; |
+ |
// Whether the extension has host permissions or user script patterns that |
// imply access to file:/// scheme URLs (the user may not have actually |
// granted it that access). |