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

Side by Side Diff: content/browser/web_contents/navigation_entry_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: alignment Created 7 years, 10 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 (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_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/browser/site_instance_impl.h" 10 #include "content/browser/site_instance_impl.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE; 68 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE;
69 virtual const GURL& GetOriginalRequestURL() const OVERRIDE; 69 virtual const GURL& GetOriginalRequestURL() const OVERRIDE;
70 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE; 70 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE;
71 virtual bool GetIsOverridingUserAgent() const OVERRIDE; 71 virtual bool GetIsOverridingUserAgent() const OVERRIDE;
72 virtual void SetTimestamp(base::Time timestamp) OVERRIDE; 72 virtual void SetTimestamp(base::Time timestamp) OVERRIDE;
73 virtual base::Time GetTimestamp() const OVERRIDE; 73 virtual base::Time GetTimestamp() const OVERRIDE;
74 virtual void SetCanLoadLocalResources(bool allow) OVERRIDE; 74 virtual void SetCanLoadLocalResources(bool allow) OVERRIDE;
75 virtual bool GetCanLoadLocalResources() const OVERRIDE; 75 virtual bool GetCanLoadLocalResources() const OVERRIDE;
76 virtual void SetFrameToNavigate(const std::string& frame_name) OVERRIDE; 76 virtual void SetFrameToNavigate(const std::string& frame_name) OVERRIDE;
77 virtual const std::string& GetFrameToNavigate() const OVERRIDE; 77 virtual const std::string& GetFrameToNavigate() const OVERRIDE;
78 virtual void SetExtraData(const std::string& key,
79 const string16& data) OVERRIDE;
80 virtual bool GetExtraData(const std::string& key,
81 string16* data) const OVERRIDE;
78 82
79 void set_unique_id(int unique_id) { 83 void set_unique_id(int unique_id) {
80 unique_id_ = unique_id; 84 unique_id_ = unique_id;
81 } 85 }
82 86
83 // The SiteInstance tells us how to share sub-processes. This is a reference 87 // The SiteInstance tells us how to share sub-processes. This is a reference
84 // counted pointer to a shared site instance. 88 // counted pointer to a shared site instance.
85 // 89 //
86 // Note that the SiteInstance should usually not be changed after it is set, 90 // Note that the SiteInstance should usually not be changed after it is set,
87 // but this may happen if the NavigationEntry was cloned and needs to use a 91 // but this may happen if the NavigationEntry was cloned and needs to use a
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 bool should_replace_entry_; 262 bool should_replace_entry_;
259 263
260 // Set when this entry should be able to access local file:// resources. This 264 // Set when this entry should be able to access local file:// resources. This
261 // value is not needed after the entry commits and is not persisted. 265 // value is not needed after the entry commits and is not persisted.
262 bool can_load_local_resources_; 266 bool can_load_local_resources_;
263 267
264 // If not empty, the name of the frame to navigate. This field is not 268 // If not empty, the name of the frame to navigate. This field is not
265 // persisted, because it is currently only used in tests. 269 // persisted, because it is currently only used in tests.
266 std::string frame_to_navigate_; 270 std::string frame_to_navigate_;
267 271
272 // Used to store extra data to support browser features.
273 std::map<std::string, string16> extra_data_;
sky 2013/01/30 23:32:03 Do you see the big warning on 182? Do we not need
sreeram 2013/01/30 23:39:05 Yes, hence the changes to chrome/browser/sessions/
sky 2013/01/31 01:34:15 That only persists the session terms, not the map.
sreeram 2013/01/31 02:14:11 Right. The map is meant to be a generic bucket for
Mathieu 2013/01/31 14:45:32 Option 1 is preferred. I added a warning.
274
268 // Copy and assignment is explicitly allowed for this class. 275 // Copy and assignment is explicitly allowed for this class.
269 }; 276 };
270 277
271 } // namespace content 278 } // namespace content
272 279
273 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ 280 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698