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

Side by Side Diff: chrome/browser/ui/toolbar/toolbar_model_impl.h

Issue 11876045: [Search] Store and recall search terms using NavigationEntry to improve search term extraction (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments Created 7 years, 11 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
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 19 matching lines...) Expand all
30 class ToolbarModelImpl : public ToolbarModel { 30 class ToolbarModelImpl : public ToolbarModel {
31 public: 31 public:
32 explicit ToolbarModelImpl(ToolbarModelDelegate* delegate); 32 explicit ToolbarModelImpl(ToolbarModelDelegate* delegate);
33 virtual ~ToolbarModelImpl(); 33 virtual ~ToolbarModelImpl();
34 34
35 // Overriden from ToolbarModel. 35 // Overriden from ToolbarModel.
36 virtual string16 GetText( 36 virtual string16 GetText(
37 bool display_search_urls_as_search_terms) const OVERRIDE; 37 bool display_search_urls_as_search_terms) const OVERRIDE;
38 virtual GURL GetURL() const OVERRIDE; 38 virtual GURL GetURL() const OVERRIDE;
39 virtual bool WouldReplaceSearchURLWithSearchTerms() const OVERRIDE; 39 virtual bool WouldReplaceSearchURLWithSearchTerms() const OVERRIDE;
40 virtual string16 GetSearchTermsFromNavigationEntry() const OVERRIDE;
40 virtual SecurityLevel GetSecurityLevel() const OVERRIDE; 41 virtual SecurityLevel GetSecurityLevel() const OVERRIDE;
41 virtual int GetIcon() const OVERRIDE; 42 virtual int GetIcon() const OVERRIDE;
42 virtual string16 GetEVCertName() const OVERRIDE; 43 virtual string16 GetEVCertName() const OVERRIDE;
43 virtual bool ShouldDisplayURL() const OVERRIDE; 44 virtual bool ShouldDisplayURL() const OVERRIDE;
44 virtual void SetInputInProgress(bool value) OVERRIDE; 45 virtual void SetInputInProgress(bool value) OVERRIDE;
45 virtual bool GetInputInProgress() const OVERRIDE; 46 virtual bool GetInputInProgress() const OVERRIDE;
46 47
47 // Returns "<organization_name> [<country>]". 48 // Returns "<organization_name> [<country>]".
48 static string16 GetEVCertName(const net::X509Certificate& cert); 49 static string16 GetEVCertName(const net::X509Certificate& cert);
49 50
(...skipping 13 matching lines...) Expand all
63 64
64 ToolbarModelDelegate* delegate_; 65 ToolbarModelDelegate* delegate_;
65 66
66 // Whether the text in the location bar is currently being edited. 67 // Whether the text in the location bar is currently being edited.
67 bool input_in_progress_; 68 bool input_in_progress_;
68 69
69 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl); 70 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl);
70 }; 71 };
71 72
72 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ 73 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698