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

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: Indentation 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 (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 "base/values.h"
10 #include "content/browser/site_instance_impl.h" 11 #include "content/browser/site_instance_impl.h"
11 #include "content/public/browser/favicon_status.h" 12 #include "content/public/browser/favicon_status.h"
12 #include "content/public/browser/global_request_id.h" 13 #include "content/public/browser/global_request_id.h"
13 #include "content/public/browser/navigation_entry.h" 14 #include "content/public/browser/navigation_entry.h"
14 #include "content/public/common/ssl_status.h" 15 #include "content/public/common/ssl_status.h"
15 16
16 namespace content { 17 namespace content {
17 18
18 class CONTENT_EXPORT NavigationEntryImpl 19 class CONTENT_EXPORT NavigationEntryImpl
19 : public NON_EXPORTED_BASE(NavigationEntry) { 20 : public NON_EXPORTED_BASE(NavigationEntry) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual const SSLStatus& GetSSL() const OVERRIDE; 67 virtual const SSLStatus& GetSSL() const OVERRIDE;
67 virtual SSLStatus& GetSSL() OVERRIDE; 68 virtual SSLStatus& GetSSL() OVERRIDE;
68 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE; 69 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE;
69 virtual const GURL& GetOriginalRequestURL() const OVERRIDE; 70 virtual const GURL& GetOriginalRequestURL() const OVERRIDE;
70 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE; 71 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE;
71 virtual bool GetIsOverridingUserAgent() const OVERRIDE; 72 virtual bool GetIsOverridingUserAgent() const OVERRIDE;
72 virtual void SetTimestamp(base::Time timestamp) OVERRIDE; 73 virtual void SetTimestamp(base::Time timestamp) OVERRIDE;
73 virtual base::Time GetTimestamp() const OVERRIDE; 74 virtual base::Time GetTimestamp() const OVERRIDE;
74 virtual void SetCanLoadLocalResources(bool allow) OVERRIDE; 75 virtual void SetCanLoadLocalResources(bool allow) OVERRIDE;
75 virtual bool GetCanLoadLocalResources() const OVERRIDE; 76 virtual bool GetCanLoadLocalResources() const OVERRIDE;
77 virtual void SetExtraData(const std::string key,
sky 2013/01/16 22:32:37 const std::string&
Mathieu 2013/01/17 15:59:29 Done.
78 const string16& data) OVERRIDE;
79 virtual const bool GetExtraData(const std::string key,
sky 2013/01/16 22:32:37 const std::string&
Mathieu 2013/01/17 15:59:29 Done.
80 string16* out_value) const OVERRIDE;
76 81
77 void set_unique_id(int unique_id) { 82 void set_unique_id(int unique_id) {
78 unique_id_ = unique_id; 83 unique_id_ = unique_id;
79 } 84 }
80 85
81 // The SiteInstance tells us how to share sub-processes. This is a reference 86 // The SiteInstance tells us how to share sub-processes. This is a reference
82 // counted pointer to a shared site instance. 87 // counted pointer to a shared site instance.
83 // 88 //
84 // Note that the SiteInstance should usually not be changed after it is set, 89 // Note that the SiteInstance should usually not be changed after it is set,
85 // but this may happen if the NavigationEntry was cloned and needs to use a 90 // but this may happen if the NavigationEntry was cloned and needs to use a
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // 257 //
253 // We also use this flag for cross-process redirect navigations, so that the 258 // We also use this flag for cross-process redirect navigations, so that the
254 // browser will replace the current navigation entry (which is the page 259 // browser will replace the current navigation entry (which is the page
255 // doing the redirect). 260 // doing the redirect).
256 bool should_replace_entry_; 261 bool should_replace_entry_;
257 262
258 // Set when this entry should be able to access local file:// resources. This 263 // Set when this entry should be able to access local file:// resources. This
259 // value is not needed after the entry commits and is not persisted. 264 // value is not needed after the entry commits and is not persisted.
260 bool can_load_local_resources_; 265 bool can_load_local_resources_;
261 266
267 // Used to store extra data to support browser features.
268 typedef std::map<std::string, string16> ExtraDataMap;
269 ExtraDataMap extra_data_;
270
262 // Copy and assignment is explicitly allowed for this class. 271 // Copy and assignment is explicitly allowed for this class.
263 }; 272 };
264 273
265 } // namespace content 274 } // namespace content
266 275
267 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ 276 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698