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

Side by Side Diff: content/public/renderer/navigation_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 | « content/public/renderer/document_state.h ('k') | content/renderer/render_view_browsertest.cc » ('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_NAVIGATION_STATE_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_
6 #define CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ 6 #define CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h"
10 #include "content/public/common/page_transition_types.h" 11 #include "content/public/common/page_transition_types.h"
11 12
12 namespace content { 13 namespace content {
13 14
14 // NavigationState is the portion of DocumentState that is affected by 15 // NavigationState is the portion of DocumentState that is affected by
15 // in-document navigation. 16 // in-document navigation.
16 // TODO(simonjam): Move this to HistoryItem's ExtraData. 17 // TODO(simonjam): Move this to HistoryItem's ExtraData.
17 class NavigationState { 18 class CONTENT_EXPORT NavigationState {
18 public: 19 public:
19 virtual ~NavigationState(); 20 virtual ~NavigationState();
20 21
21 static NavigationState* CreateBrowserInitiated( 22 static NavigationState* CreateBrowserInitiated(
22 int32 pending_page_id, 23 int32 pending_page_id,
23 int pending_history_list_offset, 24 int pending_history_list_offset,
24 content::PageTransition transition_type) { 25 content::PageTransition transition_type) {
25 return new NavigationState(transition_type, false, pending_page_id, 26 return new NavigationState(transition_type, false, pending_page_id,
26 pending_history_list_offset); 27 pending_history_list_offset);
27 } 28 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 int transferred_request_request_id_; 104 int transferred_request_request_id_;
104 bool allow_download_; 105 bool allow_download_;
105 std::string extra_headers_; 106 std::string extra_headers_;
106 107
107 DISALLOW_COPY_AND_ASSIGN(NavigationState); 108 DISALLOW_COPY_AND_ASSIGN(NavigationState);
108 }; 109 };
109 110
110 } // namespace content 111 } // namespace content
111 112
112 #endif // CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ 113 #endif // CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_
OLDNEW
« no previous file with comments | « content/public/renderer/document_state.h ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698