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

Side by Side Diff: chrome/browser/extensions/api/history/history_api.h

Issue 197413002: Move extensions-related files to using //components/keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_API_HISTORY_HISTORY_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 content::NotificationRegistrar registrar_; 51 content::NotificationRegistrar registrar_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(HistoryEventRouter); 53 DISALLOW_COPY_AND_ASSIGN(HistoryEventRouter);
54 }; 54 };
55 55
56 class HistoryAPI : public BrowserContextKeyedAPI, public EventRouter::Observer { 56 class HistoryAPI : public BrowserContextKeyedAPI, public EventRouter::Observer {
57 public: 57 public:
58 explicit HistoryAPI(content::BrowserContext* context); 58 explicit HistoryAPI(content::BrowserContext* context);
59 virtual ~HistoryAPI(); 59 virtual ~HistoryAPI();
60 60
61 // BrowserContextKeyedService implementation. 61 // KeyedService implementation.
62 virtual void Shutdown() OVERRIDE; 62 virtual void Shutdown() OVERRIDE;
63 63
64 // BrowserContextKeyedAPI implementation. 64 // BrowserContextKeyedAPI implementation.
65 static BrowserContextKeyedAPIFactory<HistoryAPI>* GetFactoryInstance(); 65 static BrowserContextKeyedAPIFactory<HistoryAPI>* GetFactoryInstance();
66 66
67 // EventRouter::Observer implementation. 67 // EventRouter::Observer implementation.
68 virtual void OnListenerAdded(const EventListenerInfo& details) OVERRIDE; 68 virtual void OnListenerAdded(const EventListenerInfo& details) OVERRIDE;
69 69
70 private: 70 private:
71 friend class BrowserContextKeyedAPIFactory<HistoryAPI>; 71 friend class BrowserContextKeyedAPIFactory<HistoryAPI>;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // HistoryFunctionWithCallback: 204 // HistoryFunctionWithCallback:
205 virtual bool RunAsyncImpl() OVERRIDE; 205 virtual bool RunAsyncImpl() OVERRIDE;
206 206
207 // Callback for the history service to acknowledge deletion. 207 // Callback for the history service to acknowledge deletion.
208 void DeleteComplete(); 208 void DeleteComplete();
209 }; 209 };
210 210
211 } // namespace extensions 211 } // namespace extensions
212 212
213 #endif // CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_ 213 #endif // CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698