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

Side by Side Diff: chrome_frame/bho.h

Issue 4766003: Preview CL for adding an Infobar facility to Google Chrome Frame.... (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
« no previous file with comments | « no previous file | chrome_frame/bho.cc » ('j') | chrome_frame/bho.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_FRAME_BHO_H_ 5 #ifndef CHROME_FRAME_BHO_H_
6 #define CHROME_FRAME_BHO_H_ 6 #define CHROME_FRAME_BHO_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 #include <deletebrowsinghistory.h> 10 #include <deletebrowsinghistory.h>
11 #include <exdisp.h> 11 #include <exdisp.h>
12 #include <exdispid.h> 12 #include <exdispid.h>
13 #include <mshtml.h> 13 #include <mshtml.h>
14 #include <shdeprecated.h> 14 #include <shdeprecated.h>
15 15
16 #include <string> 16 #include <string>
17 17
18 #include "chrome_tab.h" // NOLINT 18 #include "chrome_tab.h" // NOLINT
19 #include "chrome_frame/delete_chrome_history.h" 19 #include "chrome_frame/delete_chrome_history.h"
20 #include "chrome_frame/infobar_manager.h"
20 #include "chrome_frame/resource.h" 21 #include "chrome_frame/resource.h"
21 #include "chrome_frame/urlmon_moniker.h" 22 #include "chrome_frame/urlmon_moniker.h"
22 #include "chrome_frame/urlmon_url_request.h" 23 #include "chrome_frame/urlmon_url_request.h"
23 #include "grit/chrome_frame_resources.h" 24 #include "grit/chrome_frame_resources.h"
24 25
25 class DeleteChromeHistory; 26 class DeleteChromeHistory;
27 class InfobarManager;
26 28
27 class PatchHelper { 29 class PatchHelper {
28 public: 30 public:
29 enum State { UNKNOWN, PATCH_IBROWSER, PATCH_PROTOCOL, PATCH_MONIKER }; 31 enum State { UNKNOWN, PATCH_IBROWSER, PATCH_PROTOCOL, PATCH_MONIKER };
30 PatchHelper() : state_(UNKNOWN) { 32 PatchHelper() : state_(UNKNOWN) {
31 } 33 }
32 34
33 State state() const { 35 State state() const {
34 return state_; 36 return state_;
35 } 37 }
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // COM_INTERFACE_ENTRY_CACHED_TEAR_OFF manages the raw pointer from CComPtr 115 // COM_INTERFACE_ENTRY_CACHED_TEAR_OFF manages the raw pointer from CComPtr
114 // which ScopedComPtr doesn't expose. 116 // which ScopedComPtr doesn't expose.
115 CComPtr<IUnknown> delete_chrome_history_; 117 CComPtr<IUnknown> delete_chrome_history_;
116 118
117 protected: 119 protected:
118 bool PatchProtocolHandler(const CLSID& handler_clsid); 120 bool PatchProtocolHandler(const CLSID& handler_clsid);
119 121
120 static _ATL_FUNC_INFO kBeforeNavigate2Info; 122 static _ATL_FUNC_INFO kBeforeNavigate2Info;
121 static _ATL_FUNC_INFO kNavigateComplete2Info; 123 static _ATL_FUNC_INFO kNavigateComplete2Info;
122 static _ATL_FUNC_INFO kDocumentCompleteInfo; 124 static _ATL_FUNC_INFO kDocumentCompleteInfo;
125
126 private:
127 scoped_ptr<InfobarManager> infobar_manager_;
123 }; 128 };
124 129
125 #endif // CHROME_FRAME_BHO_H_ 130 #endif // CHROME_FRAME_BHO_H_
OLDNEW
« no previous file with comments | « no previous file | chrome_frame/bho.cc » ('j') | chrome_frame/bho.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698