| Index: chrome/browser/bookmarks/chrome_bookmark_client.h
 | 
| diff --git a/chrome/browser/bookmarks/chrome_bookmark_client.h b/chrome/browser/bookmarks/chrome_bookmark_client.h
 | 
| new file mode 100644
 | 
| index 0000000000000000000000000000000000000000..ac159ac2a4d4e961edcedbc5b8e580d9eac263a6
 | 
| --- /dev/null
 | 
| +++ b/chrome/browser/bookmarks/chrome_bookmark_client.h
 | 
| @@ -0,0 +1,62 @@
 | 
| +// Copyright 2014 The Chromium Authors. All rights reserved.
 | 
| +// Use of this source code is governed by a BSD-style license that can be
 | 
| +// found in the LICENSE file.
 | 
| +
 | 
| +#ifndef CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_
 | 
| +#define CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_
 | 
| +
 | 
| +#include "base/compiler_specific.h"
 | 
| +#include "components/bookmarks/core/browser/bookmark_client.h"
 | 
| +#include "components/keyed_service/core/keyed_service.h"
 | 
| +#include "content/public/browser/notification_observer.h"
 | 
| +#include "content/public/browser/notification_registrar.h"
 | 
| +
 | 
| +class BookmarkModel;
 | 
| +class Profile;
 | 
| +
 | 
| +class ChromeBookmarkClient : public BookmarkClient,
 | 
| +                             public content::NotificationObserver,
 | 
| +                             public KeyedService {
 | 
| + public:
 | 
| +  // |index_urls| says whether URLs should be stored in the BookmarkIndex
 | 
| +  // in addition to bookmark titles.
 | 
| +  ChromeBookmarkClient(Profile* profile, bool index_urls);
 | 
| +  virtual ~ChromeBookmarkClient();
 | 
| +
 | 
| +  // Returns the BookmarkModel that corresponds to this ChromeBookmarkClient.
 | 
| +  BookmarkModel* model() { return model_.get(); }
 | 
| +
 | 
| +  // BookmarkClient:
 | 
| +  virtual base::CancelableTaskTracker::TaskId GetFaviconImageForURL(
 | 
| +      const GURL& page_url,
 | 
| +      int icon_types,
 | 
| +      int desired_size_in_dip,
 | 
| +      const FaviconImageCallback& callback,
 | 
| +      base::CancelableTaskTracker* tracker) OVERRIDE;
 | 
| +  virtual bool SupportsTypedCountForNodes() OVERRIDE;
 | 
| +  virtual void GetTypedCountForNodes(
 | 
| +      const NodeSet& nodes,
 | 
| +      NodeTypedCountPairs* node_typed_count_pairs) OVERRIDE;
 | 
| +  virtual void RecordAction(const base::UserMetricsAction& action) OVERRIDE;
 | 
| +  virtual void NotifyHistoryAboutRemovedBookmarks(
 | 
| +      const std::set<GURL>& removed_bookmarks_urls) OVERRIDE;
 | 
| +
 | 
| +  // content::NotificationObserver:
 | 
| +  virtual void Observe(int type,
 | 
| +                       const content::NotificationSource& source,
 | 
| +                       const content::NotificationDetails& details) OVERRIDE;
 | 
| +
 | 
| +  // KeyedService:
 | 
| +  virtual void Shutdown() OVERRIDE;
 | 
| +
 | 
| + private:
 | 
| +  Profile* profile_;
 | 
| +
 | 
| +  content::NotificationRegistrar registrar_;
 | 
| +
 | 
| +  scoped_ptr<BookmarkModel> model_;
 | 
| +
 | 
| +  DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkClient);
 | 
| +};
 | 
| +
 | 
| +#endif  // CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_
 | 
| 
 |