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

Side by Side Diff: chrome/browser/history/history_publisher.h

Issue 11050009: Use ScopedCOMInitializer in more places. While this doesn't always simplify code, it does mean we … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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_BROWSER_HISTORY_HISTORY_PUBLISHER_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 12
13 #if defined(OS_WIN) 13 #if defined(OS_WIN)
14 #include "base/win/scoped_com_initializer.h"
14 #include "base/win/scoped_comptr.h" 15 #include "base/win/scoped_comptr.h"
15 #include "history_indexer.h" 16 #include "history_indexer.h"
16 #endif 17 #endif
17 18
18 class GURL; 19 class GURL;
19 20
20 namespace base { 21 namespace base {
21 class Time; 22 class Time;
22 } 23 }
23 24
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 65
65 typedef std::vector< base::win::ScopedComPtr< 66 typedef std::vector< base::win::ScopedComPtr<
66 IChromeHistoryIndexer> > IndexerList; 67 IChromeHistoryIndexer> > IndexerList;
67 68
68 // The list of indexers registered to receive history data from us. 69 // The list of indexers registered to receive history data from us.
69 IndexerList indexers_; 70 IndexerList indexers_;
70 71
71 // The Registry key under HKCU where the indexers need to register their 72 // The Registry key under HKCU where the indexers need to register their
72 // CLSID. 73 // CLSID.
73 static const wchar_t* const kRegKeyRegisteredIndexersInfo; 74 static const wchar_t* const kRegKeyRegisteredIndexersInfo;
75
76 base::win::ScopedCOMInitializer com_initializer_;
74 #endif 77 #endif
75 78
76 // The format of the thumbnail we pass to indexers. 79 // The format of the thumbnail we pass to indexers.
77 static const char* const kThumbnailImageFormat; 80 static const char* const kThumbnailImageFormat;
78 81
79 DISALLOW_COPY_AND_ASSIGN(HistoryPublisher); 82 DISALLOW_COPY_AND_ASSIGN(HistoryPublisher);
80 }; 83 };
81 84
82 } // namespace history 85 } // namespace history
83 86
84 #endif // CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_ 87 #endif // CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698