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

Unified Diff: chrome/browser/automation/automation_resource_message_filter.h

Issue 386008: ChromeFrame HTTP requests would randomly fail if we navigated to multiple HTT... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « no previous file | chrome/browser/automation/automation_resource_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_resource_message_filter.h
===================================================================
--- chrome/browser/automation/automation_resource_message_filter.h (revision 31553)
+++ chrome/browser/automation/automation_resource_message_filter.h (working copy)
@@ -39,6 +39,12 @@
AutomationResourceMessageFilter();
virtual ~AutomationResourceMessageFilter();
+ // Returns a new automation request id. This is unique across all instances
+ // of AutomationResourceMessageFilter.
+ int NewAutomationRequestId() {
+ return base::subtle::Barrier_AtomicIncrement(&unique_request_id_, 1);
+ }
+
// IPC::ChannelProxy::MessageFilter methods:
virtual void OnFilterAdded(IPC::Channel* channel);
virtual void OnChannelConnected(int32 peer_pid);
@@ -63,7 +69,16 @@
static bool LookupRegisteredRenderView(
int renderer_pid, int renderer_id, AutomationDetails* details);
+ // Sends the download request to the automation host.
+ bool SendDownloadRequestToHost(int routing_id, int tab_handle,
+ int request_id);
+
protected:
+ // Retrieves the automation request id for the passed in chrome request
+ // id and returns it in the automation_request_id parameter.
+ // Returns true on success.
+ bool GetAutomationRequestId(int request_id, int* automation_request_id);
+
static void RegisterRenderViewInIOThread(int renderer_pid, int renderer_id,
int tab_handle, AutomationResourceMessageFilter* filter);
static void UnRegisterRenderViewInIOThread(int renderer_pid, int renderer_id);
@@ -94,6 +109,9 @@
// owned by this class.
IPC::Channel* channel_;
+ // A unique request id per process.
+ static int unique_request_id_;
+
// Map of outstanding requests.
RequestMap request_map_;
« no previous file with comments | « no previous file | chrome/browser/automation/automation_resource_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698