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

Unified Diff: extensions/renderer/request_sender.h

Issue 2517393002: [Extensions] Remove RequestSender::ScopedTabID (Closed)
Patch Set: Created 4 years, 1 month 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/renderer/dispatcher.cc ('k') | extensions/renderer/request_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/request_sender.h
diff --git a/extensions/renderer/request_sender.h b/extensions/renderer/request_sender.h
index 4ffd90249032147542df5971b8ab6b57369cd0a3..b0749bfdffc4fff408749a6d1785847f77f8574d 100644
--- a/extensions/renderer/request_sender.h
+++ b/extensions/renderer/request_sender.h
@@ -47,20 +47,6 @@ class RequestSender {
const std::string& error) = 0;
};
- // Helper class to (re)set the |source_tab_id_| below.
- class ScopedTabID {
- public:
- ScopedTabID(RequestSender* request_sender, int tab_id);
- ~ScopedTabID();
-
- private:
- RequestSender* const request_sender_;
- const int tab_id_;
- const int previous_tab_id_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedTabID);
- };
-
RequestSender();
virtual ~RequestSender();
@@ -108,8 +94,6 @@ class RequestSender {
PendingRequestMap pending_requests_;
- int source_tab_id_; // Id of the tab sending the request, or -1 if no tab.
-
DISALLOW_COPY_AND_ASSIGN(RequestSender);
};
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | extensions/renderer/request_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698