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

Side by Side Diff: content/public/renderer/document_state.h

Issue 14188060: Change decidePolicyForNavigation() to takea WebDataSource::ExtraData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/public/renderer/navigation_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_DOCUMENT_STATE_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_
6 #define CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ 6 #define CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/supports_user_data.h" 12 #include "base/supports_user_data.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "content/common/content_export.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h"
15 16
16 namespace content { 17 namespace content {
17 18
18 class NavigationState; 19 class NavigationState;
19 struct PasswordForm; 20 struct PasswordForm;
20 21
21 // The RenderView stores an instance of this class in the "extra data" of each 22 // The RenderView stores an instance of this class in the "extra data" of each
22 // WebDataSource (see RenderView::DidCreateDataSource). 23 // WebDataSource (see RenderView::DidCreateDataSource).
23 class DocumentState : public WebKit::WebDataSource::ExtraData, 24 class CONTENT_EXPORT DocumentState
24 public base::SupportsUserData { 25 : NON_EXPORTED_BASE(public WebKit::WebDataSource::ExtraData),
26 public base::SupportsUserData {
25 public: 27 public:
26 // The exact values of this enum are used in histograms, so new values must be 28 // The exact values of this enum are used in histograms, so new values must be
27 // added to the end. 29 // added to the end.
28 enum LoadType { 30 enum LoadType {
29 UNDEFINED_LOAD, // Not yet initialized. 31 UNDEFINED_LOAD, // Not yet initialized.
30 RELOAD, // User pressed reload. 32 RELOAD, // User pressed reload.
31 HISTORY_LOAD, // Back or forward. 33 HISTORY_LOAD, // Back or forward.
32 NORMAL_LOAD, // User entered URL, or omnibox search. 34 NORMAL_LOAD, // User entered URL, or omnibox search.
33 LINK_LOAD, // (deprecated) Included next 4 categories. 35 LINK_LOAD, // (deprecated) Included next 4 categories.
34 LINK_LOAD_NORMAL, // Commonly following of link. 36 LINK_LOAD_NORMAL, // Commonly following of link.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 LoadType load_type_; 214 LoadType load_type_;
213 215
214 scoped_ptr<NavigationState> navigation_state_; 216 scoped_ptr<NavigationState> navigation_state_;
215 217
216 bool can_load_local_resources_; 218 bool can_load_local_resources_;
217 }; 219 };
218 220
219 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ 221 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_
220 222
221 } // namespace content 223 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/renderer/navigation_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698