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

Side by Side Diff: content/browser/frame_host/navigation_entry_impl.cc

Issue 2225343002: Navigation: move RestoreType and ReloadType into a separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [rebase] Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/frame_host/navigation_entry_impl.h" 5 #include "content/browser/frame_host/navigation_entry_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <queue> 9 #include <queue>
10 #include <utility> 10 #include <utility>
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 referrer, 245 referrer,
246 "GET", 246 "GET",
247 -1))), 247 -1))),
248 unique_id_(GetUniqueIDInConstructor()), 248 unique_id_(GetUniqueIDInConstructor()),
249 bindings_(kInvalidBindings), 249 bindings_(kInvalidBindings),
250 page_type_(PAGE_TYPE_NORMAL), 250 page_type_(PAGE_TYPE_NORMAL),
251 update_virtual_url_with_url_(false), 251 update_virtual_url_with_url_(false),
252 title_(title), 252 title_(title),
253 page_id_(page_id), 253 page_id_(page_id),
254 transition_type_(transition_type), 254 transition_type_(transition_type),
255 restore_type_(RESTORE_NONE), 255 restore_type_(RestoreType::NONE),
256 is_overriding_user_agent_(false), 256 is_overriding_user_agent_(false),
257 http_status_code_(0), 257 http_status_code_(0),
258 is_renderer_initiated_(is_renderer_initiated), 258 is_renderer_initiated_(is_renderer_initiated),
259 should_replace_entry_(false), 259 should_replace_entry_(false),
260 should_clear_history_list_(false), 260 should_clear_history_list_(false),
261 can_load_local_resources_(false), 261 can_load_local_resources_(false),
262 frame_tree_node_id_(-1) { 262 frame_tree_node_id_(-1) {
263 #if defined(OS_ANDROID) 263 #if defined(OS_ANDROID)
264 has_user_gesture_ = false; 264 has_user_gesture_ = false;
265 #endif 265 #endif
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 void NavigationEntryImpl::SetRedirectChain( 549 void NavigationEntryImpl::SetRedirectChain(
550 const std::vector<GURL>& redirect_chain) { 550 const std::vector<GURL>& redirect_chain) {
551 redirect_chain_ = redirect_chain; 551 redirect_chain_ = redirect_chain;
552 } 552 }
553 553
554 const std::vector<GURL>& NavigationEntryImpl::GetRedirectChain() const { 554 const std::vector<GURL>& NavigationEntryImpl::GetRedirectChain() const {
555 return redirect_chain_; 555 return redirect_chain_;
556 } 556 }
557 557
558 bool NavigationEntryImpl::IsRestored() const { 558 bool NavigationEntryImpl::IsRestored() const {
559 return restore_type_ != RESTORE_NONE; 559 return restore_type_ != RestoreType::NONE;
560 } 560 }
561 561
562 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) { 562 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) {
563 can_load_local_resources_ = allow; 563 can_load_local_resources_ = allow;
564 } 564 }
565 565
566 bool NavigationEntryImpl::GetCanLoadLocalResources() const { 566 bool NavigationEntryImpl::GetCanLoadLocalResources() const {
567 return can_load_local_resources_; 567 return can_load_local_resources_;
568 } 568 }
569 569
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 return node; 906 return node;
907 907
908 // Enqueue any children and keep looking. 908 // Enqueue any children and keep looking.
909 for (auto* child : node->children) 909 for (auto* child : node->children)
910 work_queue.push(child); 910 work_queue.push(child);
911 } 911 }
912 return nullptr; 912 return nullptr;
913 } 913 }
914 914
915 } // namespace content 915 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_entry_impl.h ('k') | content/browser/frame_host/navigation_entry_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698