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

Unified Diff: chrome_frame/delete_chrome_history.h

Issue 1343002: Re-submit of GCF privacy patch in:... (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_frame/chrome_frame_plugin.h ('k') | chrome_frame/delete_chrome_history.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/delete_chrome_history.h
===================================================================
--- chrome_frame/delete_chrome_history.h (revision 0)
+++ chrome_frame/delete_chrome_history.h (revision 0)
@@ -0,0 +1,65 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_FRAME_DELETE_CHROME_HISTORY_H_
+#define CHROME_FRAME_DELETE_CHROME_HISTORY_H_
+
+#include <atlbase.h>
+#include <atlwin.h>
+#include <atlcom.h>
+
+#include <deletebrowsinghistory.h>
+
+#include "base/message_loop.h"
+#include "chrome_frame/bho.h"
+#include "chrome_frame/chrome_frame_plugin.h"
+#include "grit/chrome_frame_resources.h"
+
+// Include without path to make GYP build see it.
+#include "chrome_tab.h" // NOLINT
+
+class Bho;
+
+// DeleteChromeHistory: Implements IDeleteBrowsingHistory and
+// pumps cache clearing operations over automation. Blocks the UI
+// thread while operating. You have been warned.
+class ATL_NO_VTABLE DeleteChromeHistory
+ : public CComTearOffObjectBase<Bho, CComSingleThreadModel>,
+ public CWindowImpl<DeleteChromeHistory>,
+ public ChromeFramePlugin<DeleteChromeHistory>,
+ public IDeleteBrowsingHistory {
+ public:
+ DeleteChromeHistory();
+ ~DeleteChromeHistory();
+
+ HRESULT FinalConstruct();
+
+DECLARE_CLASSFACTORY_SINGLETON(DeleteChromeHistory)
+
+BEGIN_COM_MAP(DeleteChromeHistory)
+ COM_INTERFACE_ENTRY(IDeleteBrowsingHistory)
+END_COM_MAP()
+
+BEGIN_MSG_MAP(DeleteChromeHistory)
+ CHAIN_MSG_MAP(ChromeFramePlugin<DeleteChromeHistory>)
+END_MSG_MAP()
+
+ // IDeleteBrowsingHistory methods
+ STDMETHOD(DeleteBrowsingHistory)(DWORD flags);
+
+ protected:
+ // ChromeFrameDelegate overrides
+ virtual void OnAutomationServerReady();
+ virtual void OnAutomationServerLaunchFailed(
+ AutomationLaunchResult reason, const std::string& server_version);
+
+ virtual void GetProfilePath(const std::wstring& profile_name,
+ FilePath* profile_path);
+
+ private:
+ unsigned long remove_mask_;
+ MessageLoopForUI loop_;
+};
+
+#endif // CHROME_FRAME_DELETE_CHROME_HISTORY_H_
Property changes on: chrome_frame\delete_chrome_history.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome_frame/chrome_frame_plugin.h ('k') | chrome_frame/delete_chrome_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698