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

Unified Diff: chrome_frame/bho.h

Issue 858003: First cut of privacy work for GCF. Implements IDeleteBrowsing history and mov... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « chrome/test/automation/automation_messages_internal.h ('k') | chrome_frame/bho.rgs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/bho.h
===================================================================
--- chrome_frame/bho.h (revision 42644)
+++ chrome_frame/bho.h (working copy)
@@ -7,6 +7,7 @@
#include <atlbase.h>
#include <atlcom.h>
+#include <deletebrowsinghistory.h>
#include <exdisp.h>
#include <exdispid.h>
#include <mshtml.h>
@@ -16,11 +17,14 @@
#include "base/scoped_comptr_win.h"
#include "chrome_tab.h" // NOLINT
+#include "chrome_frame/delete_chrome_history.h"
#include "chrome_frame/resource.h"
#include "chrome_frame/urlmon_moniker.h"
#include "chrome_frame/urlmon_url_request.h"
#include "grit/chrome_frame_resources.h"
+class DeleteChromeHistory;
+
class PatchHelper {
public:
enum State { UNKNOWN, PATCH_IBROWSER, PATCH_PROTOCOL };
@@ -55,12 +59,18 @@
IBrowserService* browser, IShellView* shell_view, BOOL done,
VARIANT* in_arg, VARIANT* out_arg);
+DECLARE_GET_CONTROLLING_UNKNOWN()
DECLARE_REGISTRY_RESOURCEID(IDR_BHO)
DECLARE_NOT_AGGREGATABLE(Bho)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(Bho)
COM_INTERFACE_ENTRY(IObjectWithSite)
+ // When calling DeleteChromeHistory, ensure that only one instance
+ // is created to avoid mulitple message loops.
+ COM_INTERFACE_ENTRY_CACHED_TEAR_OFF(IID_IDeleteBrowsingHistory,
+ DeleteChromeHistory,
+ delete_chrome_history_.p)
END_COM_MAP()
BEGIN_SINK_MAP(Bho)
@@ -96,6 +106,10 @@
static void ProcessOptInUrls(IWebBrowser2* browser, BSTR url);
+ // COM_INTERFACE_ENTRY_CACHED_TEAR_OFF manages the raw pointer from CComPtr
+ // which ScopedComPtr doesn't expose.
+ CComPtr<IUnknown> delete_chrome_history_;
+
protected:
bool PatchProtocolHandler(const CLSID& handler_clsid);
« no previous file with comments | « chrome/test/automation/automation_messages_internal.h ('k') | chrome_frame/bho.rgs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698