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

Side by Side Diff: ceee/ie/plugin/bho/webrequest_events_funnel.h

Issue 4989002: Firing event to broker without worker thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Funnel of Chrome Extension Web Request Events. 5 // Funnel of Chrome Extension Web Request Events.
6 6
7 #ifndef CEEE_IE_PLUGIN_BHO_WEBREQUEST_EVENTS_FUNNEL_H_ 7 #ifndef CEEE_IE_PLUGIN_BHO_WEBREQUEST_EVENTS_FUNNEL_H_
8 #define CEEE_IE_PLUGIN_BHO_WEBREQUEST_EVENTS_FUNNEL_H_ 8 #define CEEE_IE_PLUGIN_BHO_WEBREQUEST_EVENTS_FUNNEL_H_
9 9
10 #include <atlcomcli.h> 10 #include <atlcomcli.h>
11 11
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "ceee/ie/plugin/bho/events_funnel.h" 13 #include "ceee/ie/plugin/bho/events_funnel.h"
14 14
15 #include "toolband.h" // NOLINT 15 #include "toolband.h" // NOLINT
16 16
17 // Implements a set of methods to send web request related events to the 17 // Implements a set of methods to send web request related events to the
18 // Broker. 18 // Broker.
19 class WebRequestEventsFunnel : public EventsFunnel { 19 class WebRequestEventsFunnel : public EventsFunnel {
20 public: 20 public:
21 WebRequestEventsFunnel() : EventsFunnel(false) {} 21 WebRequestEventsFunnel() {}
22 22
23 // Sends the webRequest.onBeforeRedirect event to the broker. 23 // Sends the webRequest.onBeforeRedirect event to the broker.
24 // @param request_id The ID of the request. 24 // @param request_id The ID of the request.
25 // @param url The URL of the current request. 25 // @param url The URL of the current request.
26 // @param status_code Standard HTTP status code returned by the server. 26 // @param status_code Standard HTTP status code returned by the server.
27 // @param redirect_url The new URL. 27 // @param redirect_url The new URL.
28 // @param time_stamp The time when the browser was about to make the redirect. 28 // @param time_stamp The time when the browser was about to make the redirect.
29 virtual HRESULT OnBeforeRedirect(int request_id, 29 virtual HRESULT OnBeforeRedirect(int request_id,
30 const wchar_t* url, 30 const wchar_t* url,
31 DWORD status_code, 31 DWORD status_code,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual HRESULT OnRequestSent(int request_id, 89 virtual HRESULT OnRequestSent(int request_id,
90 const wchar_t* url, 90 const wchar_t* url,
91 const char* ip, 91 const char* ip,
92 const base::Time& time_stamp); 92 const base::Time& time_stamp);
93 93
94 private: 94 private:
95 DISALLOW_COPY_AND_ASSIGN(WebRequestEventsFunnel); 95 DISALLOW_COPY_AND_ASSIGN(WebRequestEventsFunnel);
96 }; 96 };
97 97
98 #endif // CEEE_IE_PLUGIN_BHO_WEBREQUEST_EVENTS_FUNNEL_H_ 98 #endif // CEEE_IE_PLUGIN_BHO_WEBREQUEST_EVENTS_FUNNEL_H_
OLDNEW
« no previous file with comments | « ceee/ie/plugin/bho/webnavigation_events_funnel.h ('k') | ceee/ie/plugin/toolband/toolband_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698