Add ability to gather metrics to BubbleManager.
[chromium-blink-merge.git] / chrome / browser / ui / find_bar / find_bar_state.h
blob8fcb503ab258d7465deb5ab776ce29b83bd5688b
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
3 // found in the LICENSE file.
5 // Stores per-profile state needed for find in page. This includes the most
6 // recently searched for term.
8 #ifndef CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_STATE_H_
9 #define CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_STATE_H_
11 #include "base/basictypes.h"
12 #include "base/strings/string16.h"
13 #include "components/keyed_service/core/keyed_service.h"
15 class Profile;
17 class FindBarState : public KeyedService {
18 public:
19 FindBarState() {}
20 ~FindBarState() override {}
22 base::string16 last_prepopulate_text() const {
23 return last_prepopulate_text_;
26 void set_last_prepopulate_text(const base::string16& text) {
27 last_prepopulate_text_ = text;
30 private:
31 base::string16 last_prepopulate_text_;
33 DISALLOW_COPY_AND_ASSIGN(FindBarState);
36 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_STATE_H_