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

Unified Diff: extensions/browser/extension_function.h

Issue 444133003: Try run for https://codereview.chromium.org/426593007. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: app view fix Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/event_router.cc ('k') | extensions/browser/extension_function.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_function.h
diff --git a/extensions/browser/extension_function.h b/extensions/browser/extension_function.h
index 44ed36a305a2218d509bb5755c3bdc4e409e3a10..4cb41ad5d30e89eeda6bfce76d168d16e0f10a2c 100644
--- a/extensions/browser/extension_function.h
+++ b/extensions/browser/extension_function.h
@@ -20,6 +20,7 @@
#include "extensions/browser/extension_function_histogram_value.h"
#include "extensions/browser/info_map.h"
#include "extensions/common/extension.h"
+#include "extensions/common/features/feature.h"
#include "ipc/ipc_message.h"
class ExtensionFunction;
@@ -246,6 +247,13 @@ class ExtensionFunction
void set_source_tab_id(int source_tab_id) { source_tab_id_ = source_tab_id; }
int source_tab_id() const { return source_tab_id_; }
+ void set_source_context_type(extensions::Feature::Context type) {
+ source_context_type_ = type;
+ }
+ extensions::Feature::Context source_context_type() const {
+ return source_context_type_;
+ }
+
protected:
friend struct ExtensionFunctionDeleteTraits;
@@ -372,6 +380,9 @@ class ExtensionFunction
// The ID of the tab triggered this function call, or -1 if there is no tab.
int source_tab_id_;
+ // The type of the JavaScript context where this call originated.
+ extensions::Feature::Context source_context_type_;
+
private:
void OnRespondingLater(ResponseValue response);
« no previous file with comments | « extensions/browser/event_router.cc ('k') | extensions/browser/extension_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698