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

Side by Side Diff: chrome/browser/ui/find_bar/find_bar_state.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
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 // Stores per-profile state needed for find in page. This includes the most 5 // Stores per-profile state needed for find in page. This includes the most
6 // recently searched for term. 6 // recently searched for term.
7 7
8 #ifndef CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_STATE_H_ 8 #ifndef CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_STATE_H_
9 #define CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_STATE_H_ 9 #define CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_STATE_H_
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "components/keyed_service/core/keyed_service.h" 13 #include "components/keyed_service/core/keyed_service.h"
14 14
15 class Profile;
16
17 class FindBarState : public KeyedService { 15 class FindBarState : public KeyedService {
18 public: 16 public:
19 FindBarState() {} 17 FindBarState() {}
20 ~FindBarState() override {} 18 ~FindBarState() override {}
21 19
22 base::string16 last_prepopulate_text() const { 20 base::string16 last_prepopulate_text() const {
23 return last_prepopulate_text_; 21 return last_prepopulate_text_;
24 } 22 }
25 23
26 void set_last_prepopulate_text(const base::string16& text) { 24 void set_last_prepopulate_text(const base::string16& text) {
27 last_prepopulate_text_ = text; 25 last_prepopulate_text_ = text;
28 } 26 }
29 27
30 private: 28 private:
31 base::string16 last_prepopulate_text_; 29 base::string16 last_prepopulate_text_;
32 30
33 DISALLOW_COPY_AND_ASSIGN(FindBarState); 31 DISALLOW_COPY_AND_ASSIGN(FindBarState);
34 }; 32 };
35 33
36 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_STATE_H_ 34 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_STATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/settings_api_bubble_helpers.h ('k') | chrome/browser/ui/find_bar/find_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698