chromeos: dbus: add Bluetooth properties support
[chromium-blink-merge.git] / chrome_frame / delete_chrome_history.h
blob810f35fb1d8e53e894502c5b63da55b63abb0769
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_FRAME_DELETE_CHROME_HISTORY_H_
6 #define CHROME_FRAME_DELETE_CHROME_HISTORY_H_
8 #include <atlbase.h>
9 #include <atlwin.h>
10 #include <atlcom.h>
12 #include <deletebrowsinghistory.h>
14 #include "base/message_loop.h"
15 #include "chrome_frame/bho.h"
16 #include "chrome_frame/chrome_frame_plugin.h"
17 #include "chrome_frame/chrome_tab.h"
18 #include "grit/chrome_frame_resources.h"
20 class Bho;
22 // DeleteChromeHistory: Implements IDeleteBrowsingHistory and
23 // pumps cache clearing operations over automation. Blocks the UI
24 // thread while operating. You have been warned.
25 class ATL_NO_VTABLE DeleteChromeHistory
26 : public CComTearOffObjectBase<Bho, CComSingleThreadModel>,
27 public CWindowImpl<DeleteChromeHistory>,
28 public ChromeFramePlugin<DeleteChromeHistory>,
29 public IDeleteBrowsingHistory {
30 public:
31 DeleteChromeHistory();
32 ~DeleteChromeHistory();
34 HRESULT FinalConstruct();
36 DECLARE_CLASSFACTORY_SINGLETON(DeleteChromeHistory)
38 BEGIN_COM_MAP(DeleteChromeHistory)
39 COM_INTERFACE_ENTRY(IDeleteBrowsingHistory)
40 END_COM_MAP()
42 BEGIN_MSG_MAP(DeleteChromeHistory)
43 CHAIN_MSG_MAP(ChromeFramePlugin<DeleteChromeHistory>)
44 END_MSG_MAP()
46 // IDeleteBrowsingHistory methods
47 STDMETHOD(DeleteBrowsingHistory)(DWORD flags);
49 protected:
50 // ChromeFrameDelegate overrides
51 virtual void OnAutomationServerReady();
52 virtual void OnAutomationServerLaunchFailed(
53 AutomationLaunchResult reason, const std::string& server_version);
55 virtual void GetProfilePath(const std::wstring& profile_name,
56 FilePath* profile_path);
58 private:
59 unsigned long remove_mask_;
60 MessageLoopForUI loop_;
63 #endif // CHROME_FRAME_DELETE_CHROME_HISTORY_H_