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

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

Issue 305443004: Introduce HistoryClient interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@371825
Patch Set: Created 6 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2014 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.
4
5 #ifndef CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_H_
6 #define CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "components/history/core/browser/history_client.h"
11 #include "components/keyed_service/core/keyed_service.h"
12
13 class Profile;
14 class HistoryService;
15
16 namespace history {
17
18 class ChromeHistoryClient : public HistoryClient,
blundell 2014/05/27 09:56:38 should have a class comment.
sdefresne 2014/05/28 17:10:42 Done.
19 public KeyedService {
20 public:
21 explicit ChromeHistoryClient(Profile* profile);
22
23 HistoryService* history_service() const {
blundell 2014/05/27 09:56:38 const methods should return const pointers (or it
sdefresne 2014/05/28 17:10:42 Done.
24 return history_service_.get();
25 }
26
27 // KeyedService:
28 virtual void Shutdown() OVERRIDE;
29
30 private:
31 scoped_ptr<HistoryService> history_service_;
32
33 DISALLOW_COPY_AND_ASSIGN(ChromeHistoryClient);
34 };
35
36 } // namespace history
37
38 #endif // CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698