OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |