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

Unified Diff: extensions/browser/extension_function.h

Issue 280393003: Blobs: Catching browser-process created Blobs in extension code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/blob_holder.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 dca24a403409f2028a2d91aea8ef540cc5053f7b..3ad9bc6b1312866e4fbab88a91b85caa0e0fa0be 100644
--- a/extensions/browser/extension_function.h
+++ b/extensions/browser/extension_function.h
@@ -44,6 +44,10 @@ class ExtensionMessageFilter;
class QuotaLimitHeuristic;
}
+namespace IPC {
+class Sender;
+}
+
#ifdef NDEBUG
#define EXTENSION_FUNCTION_VALIDATE(test) \
do { \
@@ -428,6 +432,9 @@ class UIThreadExtensionFunction : public ExtensionFunction {
virtual void SendResponse(bool success) OVERRIDE;
+ // Sets the Blob UUIDs whose ownership is being transferred to the renderer.
+ void SetTransferredBlobUUIDs(const std::vector<std::string>& blob_uuids);
+
// The dispatcher that will service this extension function call.
base::WeakPtr<extensions::ExtensionFunctionDispatcher> dispatcher_;
@@ -447,9 +454,16 @@ class UIThreadExtensionFunction : public ExtensionFunction {
virtual void Destruct() const OVERRIDE;
+ // TODO(tommycli): Remove once RenderViewHost is gone.
+ IPC::Sender* GetIPCSender();
+ int GetRoutingID();
+
scoped_ptr<RenderHostTracker> tracker_;
DelegateForTests* delegate_;
+
+ // The blobs transferred to the renderer process.
+ std::vector<std::string> transferred_blob_uuids_;
};
// Extension functions that run on the IO thread. This type of function avoids
« no previous file with comments | « extensions/browser/blob_holder.cc ('k') | extensions/browser/extension_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698