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

Side by Side Diff: content/renderer/history_serialization.cc

Issue 2326153003: Rename referrerPolicy() methods to getReferrerPolicy(). (Closed)
Patch Set: . Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/renderer/history_serialization.h" 5 #include "content/renderer/history_serialization.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/strings/nullable_string16.h" 9 #include "base/strings/nullable_string16.h"
10 #include "content/child/web_url_request_util.h" 10 #include "content/child/web_url_request_util.h"
(...skipping 23 matching lines...) Expand all
34 std::vector<base::NullableString16>* output) { 34 std::vector<base::NullableString16>* output) {
35 output->reserve(output->size() + input.size()); 35 output->reserve(output->size() + input.size());
36 for (size_t i = 0; i < input.size(); ++i) 36 for (size_t i = 0; i < input.size(); ++i)
37 output->push_back(input[i]); 37 output->push_back(input[i]);
38 } 38 }
39 39
40 void GenerateFrameStateFromItem(const WebHistoryItem& item, 40 void GenerateFrameStateFromItem(const WebHistoryItem& item,
41 ExplodedFrameState* state) { 41 ExplodedFrameState* state) {
42 state->url_string = item.urlString(); 42 state->url_string = item.urlString();
43 state->referrer = item.referrer(); 43 state->referrer = item.referrer();
44 state->referrer_policy = item.referrerPolicy(); 44 state->referrer_policy = item.getReferrerPolicy();
45 state->target = item.target(); 45 state->target = item.target();
46 if (!item.stateObject().isNull()) 46 if (!item.stateObject().isNull())
47 state->state_object = item.stateObject().toString(); 47 state->state_object = item.stateObject().toString();
48 state->scroll_restoration_type = item.scrollRestorationType(); 48 state->scroll_restoration_type = item.scrollRestorationType();
49 state->visual_viewport_scroll_offset = item.visualViewportScrollOffset(); 49 state->visual_viewport_scroll_offset = item.visualViewportScrollOffset();
50 state->scroll_offset = item.scrollOffset(); 50 state->scroll_offset = item.scrollOffset();
51 state->item_sequence_number = item.itemSequenceNumber(); 51 state->item_sequence_number = item.itemSequenceNumber();
52 state->document_sequence_number = 52 state->document_sequence_number =
53 item.documentSequenceNumber(); 53 item.documentSequenceNumber();
54 state->page_scale_factor = item.pageScaleFactor(); 54 state->page_scale_factor = item.pageScaleFactor();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 if (!DecodePageState(page_state.ToEncodedData(), &state)) 143 if (!DecodePageState(page_state.ToEncodedData(), &state))
144 return std::unique_ptr<HistoryEntry>(); 144 return std::unique_ptr<HistoryEntry>();
145 145
146 std::unique_ptr<HistoryEntry> entry(new HistoryEntry()); 146 std::unique_ptr<HistoryEntry> entry(new HistoryEntry());
147 RecursivelyGenerateHistoryItem(state.top, entry->root_history_node()); 147 RecursivelyGenerateHistoryItem(state.top, entry->root_history_node());
148 148
149 return entry; 149 return entry;
150 } 150 }
151 151
152 } // namespace content 152 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/cache_storage/cache_storage_dispatcher.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698