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

Side by Side Diff: content/public/browser/navigation_entry.h

Issue 11415292: [Search] No longer reverting omnibox text on instant search (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: More tests Created 8 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 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void SetVirtualURL(const GURL& url) = 0; 68 virtual void SetVirtualURL(const GURL& url) = 0;
69 virtual const GURL& GetVirtualURL() const = 0; 69 virtual const GURL& GetVirtualURL() const = 0;
70 70
71 // The title as set by the page. This will be empty if there is no title set. 71 // The title as set by the page. This will be empty if there is no title set.
72 // The caller is responsible for detecting when there is no title and 72 // The caller is responsible for detecting when there is no title and
73 // displaying the appropriate "Untitled" label if this is being displayed to 73 // displaying the appropriate "Untitled" label if this is being displayed to
74 // the user. 74 // the user.
75 virtual void SetTitle(const string16& title) = 0; 75 virtual void SetTitle(const string16& title) = 0;
76 virtual const string16& GetTitle() const = 0; 76 virtual const string16& GetTitle() const = 0;
77 77
78 // Extracted Search Terms. Can be empty.
79 virtual void SetSearchTerms(const string16& search_terms) = 0;
80 virtual const string16& GetSearchTerms() const = 0;
81
78 // Content state is an opaque blob created by WebKit that represents the 82 // Content state is an opaque blob created by WebKit that represents the
79 // state of the page. This includes form entries and scroll position for each 83 // state of the page. This includes form entries and scroll position for each
80 // frame. We store it so that we can supply it back to WebKit to restore form 84 // frame. We store it so that we can supply it back to WebKit to restore form
81 // state properly when the user goes back and forward. 85 // state properly when the user goes back and forward.
82 // 86 //
83 // WARNING: This state is saved to the file and used to restore previous 87 // WARNING: This state is saved to the file and used to restore previous
84 // states. If the format is modified in the future, we should still be able to 88 // states. If the format is modified in the future, we should still be able to
85 // deal with older versions. 89 // deal with older versions.
86 virtual void SetContentState(const std::string& state) = 0; 90 virtual void SetContentState(const std::string& state) = 0;
87 virtual const std::string& GetContentState() const = 0; 91 virtual const std::string& GetContentState() const = 0;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 184
181 // Used to specify if this entry should be able to access local file:// 185 // Used to specify if this entry should be able to access local file://
182 // resources. 186 // resources.
183 virtual void SetCanLoadLocalResources(bool allow) = 0; 187 virtual void SetCanLoadLocalResources(bool allow) = 0;
184 virtual bool GetCanLoadLocalResources() const = 0; 188 virtual bool GetCanLoadLocalResources() const = 0;
185 }; 189 };
186 190
187 } // namespace content 191 } // namespace content
188 192
189 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 193 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698